DiscoveryClientDocumentCollection.Item[String] Property

Definition

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

C#
public object this[string url] { get; set; }

Parameters

url
String

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.

Exceptions

url is null.

Examples

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.

C#
object myObject = myDiscoveryClientDocumentCollection[myStringUrl];
Console.WriteLine("Object representing the Url : " + myObject.ToString());

Applies to

Produkt Versionen
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1