XmlSchemaExternal.SchemaLocation 屬性

定義

取得或設定結構的統一資源識別碼(URI)位置,告訴結構處理器該結構實際所在的位置。

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

屬性值

結構的 URI 位置。 匯入結構則為可選。

備註

未包含此屬性的匯入結構,則可由包含結構的實例或處理該結構的應用程式的 XML 文件來決定匯入結構的命名空間。

包含的結構會使用此屬性作為 URI 參考,指向應包含該結構目標命名空間中結構文件的位置。

適用於