ServiceDescription.TargetNamespace Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets the XML targetNamespace attribute of the descriptions tag enclosing a Web Services Description Language (WSDL) file.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public string TargetNamespace { get; set; }

Property Value

Type: System.String

The URL of the XML Web service described by the ServiceDescription.

// Read a ServiceDescription from existing WSDL.
ServiceDescription myServiceDescription =
myServiceDescription.TargetNamespace = "";

.NET Framework
Available since 1.1
Return to top