ServiceDescription.Name Property

Gets or sets the name of the service.

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

public string Name { get; set; }
/** @property */
public String get_Name ()

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

public function get Name () : String

public function set Name (value : String)

Not applicable.

Property Value

The name of the service.

If the name is a null reference (Nothing in Visual Basic), this property returns the name of the service type. If service type is also a null reference (Nothing in Visual Basic), it returns the default service name.

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

string name = svcDesc.Name;
Console.WriteLine("Service Description name: {0}", name);

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

Community Additions

ADD
Show: