Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Calls MoveToContent and tests if the current content node is a start tag or empty element tag and if the LocalName and NamespaceURI properties of the element found match the given strings.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Syntax
'Declaration
Public Overridable Function IsStartElement ( _
localname As String, _
ns As String _
) As Boolean
public virtual bool IsStartElement(
string localname,
string ns
)
public:
virtual bool IsStartElement(
String^ localname,
String^ ns
)
abstract IsStartElement :
localname:string *
ns:string -> bool
override IsStartElement :
localname:string *
ns:string -> bool
public function IsStartElement(
localname : String,
ns : String
) : boolean
Parameters
- localname
Type: System. . :: . .String
The string to match against the LocalName property of the element found.
- ns
Type: System. . :: . .String
The string to match against the NamespaceURI property of the element found.
Return Value
Type: System. . :: . .Boolean
true if the resulting node is an element. false if a node type other than XmlNodeType.Element was found or if the LocalName and NamespaceURI properties of the element do not match the specified strings.
Remarks
This method skips white space, comments, and processing instructions until the reader is positioned on a content node. The method then tests if the current node is an element.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.