DiscoveryClientDocumentCollection.Item[String] 속성

정의

지정된 URL을 사용하여 클라이언트 검색 문서 개체를 DiscoveryClientDocumentCollection 가져오거나 설정합니다.

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

매개 변수

url
String

에서 가져오기 또는 설정할 검색 문서의 URL입니다 DiscoveryClientDocumentCollection.

속성 값

Object 클라이언트에 검색되고 다운로드된 문서를 나타내는 형식입니다. 개체 ServiceDescription의 기본 형식은 , XmlSchema또는 DiscoveryDocument.

예외

urlnull입니다.

예제

다음 코드 예제에서는 변수 값과 일치하는 URL이 있는 DiscoveryClientDocumentCollection 검색 문서의 형식을 콘솔에 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()))

적용 대상