Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft