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() |
フィールドやプロパティを任意としてマークしてください。 |