DiscoveryClientDocumentCollection.Item Property

Gets or sets a client discovery document object from the DiscoveryClientDocumentCollection with the specified URL.

Namespace: System.Web.Services.Discovery
Assembly: System.Web.Services (in system.web.services.dll)

public:
property Object^ default [String^] {
	Object^ get (String^ url);
	void set (String^ url, Object^ value);
}
/** @property */
public Object get_Item (String url)

/** @property */
public void set_Item (String url, Object value)

Not applicable.

Parameters

url

The URL of the discovery document to get or set from the DiscoveryClientDocumentCollection.

Property Value

An Object representing the document discovered and downloaded to the client. The underlying type of the object can be a ServiceDescription, XmlSchema, or DiscoveryDocument.

Exception typeCondition

ArgumentNullException

url is a null reference (Nothing in Visual Basic).

The following code example outputs to the console the type of the discovery document in the DiscoveryClientDocumentCollection that has a URL matching the value of the myStringUrl variable.

Object^ myObject = myDiscoveryClientDocumentCollection[ myStringUrl ];
Console::WriteLine( "Object representing the Url : {0}", myObject );

Object myObject = myDiscoveryClientDocumentCollection.
    get_Item(myStringUrl);

Console.WriteLine("Object representing the Url : " 
    + myObject.ToString());

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: