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:
property ServiceDescription^ default [String^] {
	ServiceDescription^ get (String^ ns);
}
/** @property */
public ServiceDescription get_Item (String ns)

Not applicable.

Parameters

ns

The namespace of the ServiceDescription returned.

Property Value

A ServiceDescription.

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

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

// Get a ServiceDescription from the collection using 
// the Item property.
ServiceDescription myServiceDescription 
    = myCollection.get_Item("http://tempuri1.org/");

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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, 2.0, 1.1, 1.0

Community Additions

ADD
Show: