DiscoveryClientDocumentCollection.Item[String] Propriedade

Definição

Obtém ou define um objeto de documento de descoberta de cliente da DiscoveryClientDocumentCollection com a URL especificada.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

Parâmetros

url
String

A URL do documento de descoberta a ser obtido ou baixado da DiscoveryClientDocumentCollection.The URL of the discovery document to get or set from the DiscoveryClientDocumentCollection.

Valor da propriedade

Object

Um Object que representa o documento descoberto e baixado para o cliente.An Object representing the document discovered and downloaded to the client. O tipo subjacente do objeto pode ser um ServiceDescription , XmlSchema ou DiscoveryDocument .The underlying type of the object can be a ServiceDescription, XmlSchema, or DiscoveryDocument.

Exceções

url é null.url is null.

Exemplos

O exemplo de código a seguir gera o console do tipo de documento de descoberta no DiscoveryClientDocumentCollection que tem uma URL correspondente ao valor da myStringUrl variável.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()))

Aplica-se a