XmlSchemaElement.IsNillable 屬性

定義

取得或設定資訊,指出執行個體資料中是否能出現 xsi:nil。 指出是否能為元素指定明確的 nil 值。

public:
 property bool IsNillable { bool get(); void set(bool value); };
public bool IsNillable { get; set; }
member this.IsNillable : bool with get, set
Public Property IsNillable As Boolean

屬性值

如果 Nillable 為 true,可以讓項目執行個體的 nil 屬性設定為 truenil 屬性定義為執行個體 XML 結構描述命名空間的一部分。 預設為 false。 選擇性。

備註

這適用於項目內容,不適用於項目的屬性。

適用於