Language

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()

フィールドやプロパティを任意としてマークしてください。

適用対象