次の方法で共有


OptionalAttribute クラス

定義

フィールドまたはプロパティを省略可能として定義します。

[System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)]
[System.Serializable]
public class OptionalAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Field | System.AttributeTargets.Property)>]
[<System.Serializable>]
type OptionalAttribute = class
    inherit Attribute
Public Class OptionalAttribute
Inherits Attribute
継承
OptionalAttribute
属性

注釈

省略可能なフィールドは、値を持たない場合は許容される応答です。 既定では、すべてのフィールドは必須と見なされ、フォームに入力する必要があります。

コンストラクター

OptionalAttribute()

フィールドまたはプロパティを省略可能としてマークします。

適用対象