DiscoveryClientDocumentCollection.Item[String] Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a client discovery document object from the DiscoveryClientDocumentCollection with the specified URL.
public:
property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ url); void set(System::String ^ url, System::Object ^ value); };
public object this[string url] { get; set; }
member this.Item(string) : obj with get, set
Default Public Property Item(url As String) As Object
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.
Object^ myObject = myDiscoveryClientDocumentCollection[ myStringUrl ];
Console::WriteLine( "Object representing the Url : {0}", myObject );
object myObject = myDiscoveryClientDocumentCollection[myStringUrl];
Console.WriteLine("Object representing the Url : " + myObject.ToString());
Dim myObject As Object = myDiscoveryClientDocumentCollection(myStringUrl)
Console.WriteLine(("Object representing the Url : " + myObject.ToString()))
Applies to
.NET