DiscoveryClientDocumentCollection.Item[String] Egenskap

Definition

Hämtar eller anger ett dokumentobjekt för klientidentifiering från DiscoveryClientDocumentCollection med den angivna URL:en.

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

Parametrar

url
String

URL:en för identifieringsdokumentet som ska hämtas eller anges från DiscoveryClientDocumentCollection.

Egenskapsvärde

Ett Object som representerar det dokument som identifierats och laddats ned till klienten. Objektets underliggande typ kan vara , ServiceDescriptionXmlSchemaeller DiscoveryDocument.

Undantag

url är null.

Exempel

I följande kodexempel matas ut till konsolen typen av identifieringsdokument i DiscoveryClientDocumentCollection som har en URL som matchar variabelns myStringUrl värde.

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()))

Gäller för