OptionalAttribute クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
フィールドまたはプロパティを省略可能として定義します。
[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() |
フィールドまたはプロパティを省略可能としてマークします。 |