Share via


XmlSchemaAttribute.FixedValue 屬性

定義

取得或設定屬性的固定值。

public:
 property System::String ^ FixedValue { System::String ^ get(); void set(System::String ^ value); };
public string? FixedValue { get; set; }
public string FixedValue { get; set; }
member this.FixedValue : string with get, set
Public Property FixedValue As String

屬性值

String

屬性的固定值。 預設值是 null。 選擇性。

備註

FixedValue 表示如果存在,屬性值必須等於所提供的值。 根據預設,此屬性會設定為 null,這表示不會為 屬性提供固定值。 fixeddefault 屬性互斥。

選擇性。

適用於