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 (LocalName == localName) &&
      IsStartElement() &&
      ((NamespacePrefix == EwsUtilities.GetNamespacePrefix(xmlNamespace)) ||
          (NamespaceUri == EwsUtilities.GetNamespaceUri(xmlNamespace)));
}