語言

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

例外狀況

xmlNamespace 是 null。

備註

如果你請求預設命名空間的前綴,會回傳一個空字串。

適用於