XmlDictionaryReader.IsStartElement(XmlDictionaryString, XmlDictionaryString) XmlDictionaryReader.IsStartElement(XmlDictionaryString, XmlDictionaryString) XmlDictionaryReader.IsStartElement(XmlDictionaryString, XmlDictionaryString) XmlDictionaryReader.IsStartElement(XmlDictionaryString, XmlDictionaryString) Method

定义

测试第一个标记是开始标记还是空元素标记,以及本地名称和命名空间 URI 是否与当前节点的本地名称和命名空间 URI 相匹配。Tests whether the first tag is a start tag or empty element tag and if the local name and namespace URI match those of the current node.

public:
 virtual bool IsStartElement(System::Xml::XmlDictionaryString ^ localName, System::Xml::XmlDictionaryString ^ namespaceUri);
public virtual bool IsStartElement (System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri);
override this.IsStartElement : System.Xml.XmlDictionaryString * System.Xml.XmlDictionaryString -> bool
Public Overridable Function IsStartElement (localName As XmlDictionaryString, namespaceUri As XmlDictionaryString) As Boolean

参数

localName
XmlDictionaryString XmlDictionaryString XmlDictionaryString XmlDictionaryString

一个表示属性本地名称的 XmlDictionaryStringAn XmlDictionaryString that represents the local name of the attribute.

namespaceUri
XmlDictionaryString XmlDictionaryString XmlDictionaryString XmlDictionaryString

一个表示属性命名空间的 XmlDictionaryStringAn XmlDictionaryString that represents the namespace of the attribute.

返回

如果数组中的第一个标记是开始标记或空元素标记,并与 localNamenamespaceUri 相匹配,则为 true;否则为 falsetrue if the first tag in the array is a start tag or empty element tag and matches localName and namespaceUri; otherwise false.

适用于