This documentation is archived and is not being maintained.
ServiceDescription.TargetNamespace Property
.NET Framework 1.1
Gets or sets the XML targetNamespace attribute of the <descriptions> tag enclosing a Web Services Description Language (WSDL) file.
[Visual Basic] Public Property TargetNamespace As String [C#] public string TargetNamespace {get; set;} [C++] public: __property String* get_TargetNamespace(); public: __property void set_TargetNamespace(String*); [JScript] public function get TargetNamespace() : String; public function set TargetNamespace(String);
Property Value
The URL of the XML Web service described by the ServiceDescription.
Example
[Visual Basic] ' Read a ServiceDescription from existing WSDL. Dim myServiceDescription As ServiceDescription = _ ServiceDescription.Read("Input.vb.wsdl") myServiceDescription.TargetNamespace = "http://tempuri.org/" [C#] // Read a ServiceDescription from existing WSDL. ServiceDescription myServiceDescription = ServiceDescription.Read("Input_CS.wsdl"); myServiceDescription.TargetNamespace = "http://tempuri.org/"; [C++] // Read a ServiceDescription from existing WSDL. ServiceDescription* myServiceDescription = ServiceDescription::Read(S"Input_CS.wsdl"); myServiceDescription->TargetNamespace = S"http://tempuri.org/";
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
ServiceDescription Class | ServiceDescription Members | System.Web.Services.Description Namespace
Show: