This documentation is archived and is not being maintained.

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 */
public String get_Namespace ()

/** @property */
public void set_Namespace (String value)

public function get Namespace () : String

public function set Namespace (value : String)

Not applicable.

Property Value

The namespace for the service.

When exporting WSDL metadata, the Namespace maps 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);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0