次の方法で共有


PropertyInformation.IsRequired プロパティ

定義

構成属性が必要かどうかを指定する値を取得します。

public:
 property bool IsRequired { bool get(); };
public bool IsRequired { get; }
member this.IsRequired : bool
Public ReadOnly Property IsRequired As Boolean

プロパティ値

オブジェクトが必要な場合は a0/&。それ以外の場合は。

次のコード例は、 IsRequired プロパティの使用方法を示しています。 このコード例は、 PropertyInformation クラスに提供されるより大きな例の一部です。

// Display the IsRequired property.
Console.WriteLine("IsRequired: {0}", propertyItem.IsRequired);
' Display the IsRequired property.
Console.WriteLine("IsRequired: {0}", propertyItem.IsRequired)

適用対象