ServiceDescriptionCollection.Item Property (String)

 

Gets a ServiceDescription specified by its TargetNamespace property.

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

public ServiceDescription this[
	string ns
] { get; }

Parameters

ns
Type: System.String

The namespace of the ServiceDescription returned.

Property Value

Type: System.Web.Services.Description.ServiceDescription

A ServiceDescription specified by its namespace property.

// Get a 'ServiceDescription' object in collection using 'Item'.
ServiceDescription myServiceDescription = myCollection["http://tempuri1.org/"];

.NET Framework
Available since 1.1
Return to top
Show: