XmlSchemaAnyAttribute.Namespace 屬性

定義

取得或設定包含可以使用之屬性的命名空間。

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

屬性值

String

可以使用之屬性的命名空間。 預設為 ##any。 選擇性。

備註

如果未指定命名空間, ##any 則為預設值。 如果指定命名空間,它必須是下表所示的其中一個值。

命名空間值 描述
##any 可以表示任何命名空間的項目。
##other 任何不是 targetNamespace 包含 anyAttribute 專案之父元素之 命名空間的專案都可以存在。
##local 可以表示未以命名空間限定的項目。
##targetNamespace targetNamespace可以存在包含 anyAttribute 專案之父元素的 的專案。
List of {URIs, ##targetNamespace, ##local} 空間分隔命名空間清單中的專案可以存在。 此清單可以包含下列專案:統一資源識別項 (URI) 命名空間、 ##targetNamespace##local 的參考。

適用於