IsStartElementWithNamespace method

bool IsStartElementWithNamespace(
  1. XmlNamespace xmlNamespace,
  2. String? localName
)
Determines whether current element is a start element. The XML namespace. Name of the local.

Implementation

bool IsStartElementWithNamespace(
    XmlNamespace xmlNamespace, String? localName) {
  return (this.LocalName == localName) &&
      this.IsStartElement() &&
      ((this.NamespacePrefix ==
              EwsUtilities.GetNamespacePrefix(xmlNamespace)) ||
          (this.NamespaceUri == EwsUtilities.GetNamespaceUri(xmlNamespace)));
}