XmlDictionaryReader.IsNamespaceUri 方法

定义

检查参数 namespaceUri 是否为当前节点的命名空间。Checks whether the parameter, namespaceUri, is the namespace of the current node.

重载

IsNamespaceUri(String)

检查参数 namespaceUri 是否为当前节点的命名空间。Checks whether the parameter, namespaceUri, is the namespace of the current node.

IsNamespaceUri(XmlDictionaryString)

检查参数 namespaceUri 是否为当前节点的命名空间。Checks whether the parameter, namespaceUri, is the namespace of the current node.

IsNamespaceUri(String)

检查参数 namespaceUri 是否为当前节点的命名空间。Checks whether the parameter, namespaceUri, is the namespace of the current node.

public:
 virtual bool IsNamespaceUri(System::String ^ namespaceUri);
public virtual bool IsNamespaceUri (string namespaceUri);
abstract member IsNamespaceUri : string -> bool
override this.IsNamespaceUri : string -> bool
Public Overridable Function IsNamespaceUri (namespaceUri As String) As Boolean

参数

namespaceUri
String

当前节点的命名空间。The namespace of current node.

返回

Boolean

如果 namespaceUri 与当前节点的命名空间相匹配,则为 true;否则为 falsetrue if namespaceUri matches namespace of the current node; otherwise false.

例外

namespaceUrinullnamespaceUri is null.

适用于

IsNamespaceUri(XmlDictionaryString)

检查参数 namespaceUri 是否为当前节点的命名空间。Checks whether the parameter, namespaceUri, is the namespace of the current node.

public:
 virtual bool IsNamespaceUri(System::Xml::XmlDictionaryString ^ namespaceUri);
public virtual bool IsNamespaceUri (System.Xml.XmlDictionaryString namespaceUri);
abstract member IsNamespaceUri : System.Xml.XmlDictionaryString -> bool
override this.IsNamespaceUri : System.Xml.XmlDictionaryString -> bool
Public Overridable Function IsNamespaceUri (namespaceUri As XmlDictionaryString) As Boolean

参数

namespaceUri
XmlDictionaryString

当前节点的命名空间。Namespace of current node.

返回

Boolean

如果 namespaceUri 与当前节点的命名空间相匹配,则为 true;否则为 falsetrue if namespaceUri matches namespace of the current node; otherwise false.

例外

namespaceUrinullnamespaceUri is null.

适用于