Język

DiscoveryClientDocumentCollection.Item[String] Właściwość

Definicja

Pobiera lub ustawia obiekt dokumentu odnajdywania klienta z DiscoveryClientDocumentCollection określonego adresu 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

Parametry

url
String

Adres URL dokumentu odnajdywania, który ma być pobierany lub ustawiany z elementu DiscoveryClientDocumentCollection.

Wartość właściwości

Reprezentacja Object dokumentu odnalezionego i pobranego do klienta. Podstawowym typem obiektu może być ServiceDescription, XmlSchemalub DiscoveryDocument.

Wyjątki

Parametr url ma wartość null.

Przykłady

Poniższy przykładowy kod zwraca do konsoli typ dokumentu odnajdywania w DiscoveryClientDocumentCollection adresie URL pasującym do wartości zmiennej myStringUrl .

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

Dotyczy