GetNamespaceFromUri static method
Gets the XmlNamespace enum value from a namespace Uri.
XML namespace Uri.
Implementation
static XmlNamespace GetNamespaceFromUri(String namespaceUri) {
switch (namespaceUri) {
case EwsErrorsNamespace:
return XmlNamespace.Errors;
case EwsTypesNamespace:
return XmlNamespace.Types;
case EwsMessagesNamespace:
return XmlNamespace.Messages;
case EwsSoapNamespace:
return XmlNamespace.Soap;
case EwsSoap12Namespace:
return XmlNamespace.Soap12;
case EwsXmlSchemaInstanceNamespace:
return XmlNamespace.XmlSchemaInstance;
case PassportSoapFaultNamespace:
return XmlNamespace.PassportSoapFault;
case WSTrustFebruary2005Namespace:
return XmlNamespace.WSTrustFebruary2005;
case WSAddressingNamespace:
return XmlNamespace.WSAddressing;
default:
return XmlNamespace.NotSpecified;
}
}