ConfigurationProperty.IsRequired Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether this ConfigurationProperty is required.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
property bool IsRequired { bool get(); };
public bool IsRequired { get; }
member this.IsRequired : bool
Public ReadOnly Property IsRequired As Boolean
Property Value
true
if the ConfigurationProperty is required; otherwise, false
. The default is false
.
Examples
The following code example shows how to get the IsRequired property value for a specified configuration-property object.
string isRequired = _MaxIdleTime.IsRequired.ToString();
Console.WriteLine("MaxIdleTime is required: {0}", isRequired);
Dim isRequired As String = _MaxIdleTime.IsRequired.ToString()
Console.WriteLine("MaxIdleTime is required: {0}", isRequired)
Applies to
See also
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.