Share via


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

DiscoveryClientDocumentCollection에서 가져오거나 설정할 검색 문서의 URL입니다.

속성 값

Object

찾은 다음 클라이언트로 다운로드한 문서를 나타내는 Object입니다. 개체의 내부 형식은 ServiceDescription, XmlSchema 또는 DiscoveryDocument가 될 수 있습니다.

예외

url이(가) null인 경우

예제

다음 코드 예제에서는 콘솔에 출력 하는 형식의 검색 문서에는 DiscoveryClientDocumentCollection 의 값과 일치 하는 URL을 포함 합니다 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()))

적용 대상