ConfigurationPropertyAttribute.DefaultValue プロパティ
アセンブリ: System.Configuration (system.configuration.dll 内)
構文Dim instance As ConfigurationPropertyAttribute Dim value As Object value = instance.DefaultValue instance.DefaultValue = value
/** @property */ public Object get_DefaultValue () /** @property */ public void set_DefaultValue (Object value)
装飾された構成要素のプロパティの既定値を表すオブジェクト。
使用例DefaultValue プロパティを使用する方法の例を次に示します。
<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
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- ConfigurationPropertyAttribute.DefaultValue プロパティのページへのリンク