XmlnsDictionary.GetNamespacePrefixes 方法

定义

返回所有可能的前缀到 XAML 命名空间映射(NamespaceDeclaration 值),这些映射可在活动架构上下文中找到。Returns all possible prefix-XAML namespace mappings (NamespaceDeclaration values) that are available in the active schema context.

public:
 virtual System::Collections::Generic::IEnumerable<System::Xaml::NamespaceDeclaration ^> ^ GetNamespacePrefixes();
public System.Collections.Generic.IEnumerable<System.Xaml.NamespaceDeclaration> GetNamespacePrefixes ();
abstract member GetNamespacePrefixes : unit -> seq<System.Xaml.NamespaceDeclaration>
override this.GetNamespacePrefixes : unit -> seq<System.Xaml.NamespaceDeclaration>
Public Iterator Overridable NotOverridable Function GetNamespacePrefixes () As IEnumerable(Of NamespaceDeclaration)

返回

NamespaceDeclaration 值的可枚举集合。An enumerable set of NamespaceDeclaration values. 要明确地获取前缀字符串,请从每个返回的值中获取 Prefix 值。To get the prefix strings specifically, get the Prefix value from each value returned.

实现

适用于