Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property Object^ default[
	String^ url
] {
	Object^ get(String^ url);
	void set(String^ url, Object^ value);
}

Parameters

url
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
ArgumentNullException

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 : {0}", myObject );

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft