ServiceDescription.Namespace Property


Gets or sets the namespace for the service.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public string Namespace { get; set; }

Property Value

Type: System.String

The namespace for the service.

When exporting WSDL metadata, the Namespacemaps to the Web Service Development Language (WSDL) <service> element namespace name part of the (qualified) name attribute.

string namespc = svcDesc.Namespace;
Console.WriteLine("Service Description namespace: {0}", namespc);

.NET Framework
Available since 3.0
Return to top