XmlDictionaryReader.IsStartElement(XmlDictionaryString, XmlDictionaryString) 方法
定义
测试第一个标记是开始标记还是空元素标记,以及本地名称和命名空间 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。An XmlDictionaryString that represents the local name of the attribute.
- namespaceUri
- XmlDictionaryString
一个表示属性命名空间的 XmlDictionaryString。An XmlDictionaryString that represents the namespace of the attribute.
返回
如果数组中的第一个标记是开始标记或空元素标记,并与 localName 和 namespaceUri 相匹配,则为 true;否则为 false。true if the first tag in the array is a start tag or empty element tag and matches localName and namespaceUri; otherwise false.