Share via


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 參考,該檔應該包含在包含架構的目標命名空間中。

適用於