XamlType.GetXamlNamespaces 方法

定義

傳回字串識別項清單,這些字串識別項會識別型別所在的 XAML 命名空間。

public:
 virtual System::Collections::Generic::IList<System::String ^> ^ GetXamlNamespaces();
public virtual System.Collections.Generic.IList<string> GetXamlNamespaces ();
abstract member GetXamlNamespaces : unit -> System.Collections.Generic.IList<string>
override this.GetXamlNamespaces : unit -> System.Collections.Generic.IList<string>
Public Overridable Function GetXamlNamespaces () As IList(Of String)

傳回

IList<String>

字串值的清單,其中每個字串都是 XAML 命名空間的 URI 識別項。

備註

一般 XAML 命名空間識別碼是 URI 格式的字串。

預設實作會依序檢查下列各項:建構中提供的 XAML 命名空間 (簽章僅) XamlType(String, String, IList<XamlType>, XamlSchemaContext) ;以及可從架構內容取得的命名空間。 如果都是 null ,就會產生包含單一空字串的新清單。 您可以覆寫此方法以變更查閱方法。

適用於