XmlnsDictionary.LookupPrefix(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳對應指定 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。
備註
如果你請求預設命名空間的前綴,會回傳一個空字串。