DiscoveryClientDocumentCollection.Item Property (String)


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 object this[
	string url
] { get; set; }


Type: System.String

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

Property Value

Type: System.Object

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 Condition

url is null.

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 : " + myObject.ToString());

.NET Framework
Available since 1.1
Return to top