TimeSpanValidatorAttribute.MaxValueString プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > TimeSpanValidatorAttribute.MaxValueString プロパティの意味・解説 

TimeSpanValidatorAttribute.MaxValueString プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

指定できる最大相対値

名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文構文

Dim instance As TimeSpanValidatorAttribute
Dim value As String

value = instance.MaxValueString

instance.MaxValueString = value
public string MaxValueString { get;
 set; }
public:
property String^ MaxValueString {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_MaxValueString ()

/** @property */
public void set_MaxValueString (String value)
public function get MaxValueString
 () : String

public function set MaxValueString
 (value : String)

プロパティ
指定できる最大の TimeSpan 値。

解説解説

これは、ユーザーによって設定される最大相対値です。

使用例使用例

MaxValueString プロパティ使用する方法の例を次に示します

<ConfigurationProperty("maxIdleTime", _
DefaultValue:="0:10:0", _
IsRequired:=False), _
TimeSpanValidator(MinValueString:="0:0:30", _
MaxValueString:="5:00:0", _
ExcludeRange:=False)> _
Public Property MaxIdleTime() As
 TimeSpan
    Get
        Return CType(Me("maxIdleTime"),
 TimeSpan)
    End Get
    Set(ByVal value As TimeSpan)
        Me("maxIdleTime") = value
    End Set
End Property
[ConfigurationProperty("maxIdleTime",
    DefaultValue = "0:10:0",
    IsRequired = false)]
[TimeSpanValidator(MinValueString = "0:0:30",
    MaxValueString = "5:00:0",
    ExcludeRange = false)]
public TimeSpan MaxIdleTime
{
    get
    {
        return (TimeSpan)this["maxIdleTime"];
    }
    set
    {
        this["maxIdleTime"] = value;
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TimeSpanValidatorAttribute クラス
TimeSpanValidatorAttribute メンバ
System.Configuration 名前空間



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

TimeSpanValidatorAttribute.MaxValueString プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



TimeSpanValidatorAttribute.MaxValueString プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS