GetNamespaceUri static method

String GetNamespaceUri(
  1. XmlNamespace xmlNamespace
)
Gets the namespace URI from an XmlNamespace enum value. The XML namespace.

Implementation

static String GetNamespaceUri(XmlNamespace xmlNamespace) {
  switch (xmlNamespace) {
    case XmlNamespace.Types:
      return EwsTypesNamespace;
    case XmlNamespace.Messages:
      return EwsMessagesNamespace;
    case XmlNamespace.Errors:
      return EwsErrorsNamespace;
    case XmlNamespace.Soap:
      return EwsSoapNamespace;
    case XmlNamespace.Soap12:
      return EwsSoap12Namespace;
    case XmlNamespace.XmlSchemaInstance:
      return EwsXmlSchemaInstanceNamespace;
    case XmlNamespace.PassportSoapFault:
      return PassportSoapFaultNamespace;
    case XmlNamespace.WSTrustFebruary2005:
      return WSTrustFebruary2005Namespace;
    case XmlNamespace.WSAddressing:
      return WSAddressingNamespace;
    case XmlNamespace.Autodiscover:
      return AutodiscoverSoapNamespace;
    default:
      return "";
  }
}