DelegatingXmlDictionaryWriter.LookupPrefix(String) 方法

定义

返回在当前命名空间范围中为该命名空间 URI 定义的最近的前缀。Returns the closest prefix defined in the current namespace scope for the namespace URI.

public:
 override System::String ^ LookupPrefix(System::String ^ ns);
public override string LookupPrefix (string ns);
override this.LookupPrefix : string -> string
Public Overrides Function LookupPrefix (ns As String) As String

参数

ns
String

要查找其前缀的命名空间 URI。The namespace URI whose prefix you want to find.

返回

String

匹配的前缀或为 Null(如果当前范围内未找到匹配的命名空间 URI)。The matching prefix or null if no matching namespace URI is found in the current scope.

适用于