XmlnsDictionary.LookupPrefix(String) 方法

定義

傳回對應至指定的 XAML 命名空間 URI 的前置詞。

public:
 System::String ^ LookupPrefix(System::String ^ xmlNamespace);
public string LookupPrefix (string xmlNamespace);
member this.LookupPrefix : string -> string
Public Function LookupPrefix (xmlNamespace As String) As String

參數

xmlNamespace
String

要查詢的 XAML 命名空間 URI。

傳回

與指定的命名空間相對應的 XML 前置詞,否則為 null

例外狀況

xmlNamespacenull

備註

如果您要求預設命名空間的前置詞,則會傳回空字串。

適用於