MetadataExchangeClient.GetMetadata 메서드

정의

MetadataSet를 반환합니다.

오버로드

GetMetadata(Uri, MetadataExchangeClientMode)

지정된 다운로드 모드를 사용하여 지정된 주소에서 MetadataSet를 반환합니다.

GetMetadata(EndpointAddress, Uri)

지정된 경로의 지정된 주소에서 MetadataSet을 반환합니다.

GetMetadata(EndpointAddress)

지정된 주소에서 MetadataSet를 반환합니다.

GetMetadata()

MetadataSet를 반환합니다.

GetMetadata(Uri, MetadataExchangeClientMode)

지정된 다운로드 모드를 사용하여 지정된 주소에서 MetadataSet를 반환합니다.

public:
 System::ServiceModel::Description::MetadataSet ^ GetMetadata(Uri ^ address, System::ServiceModel::Description::MetadataExchangeClientMode mode);
public System.ServiceModel.Description.MetadataSet GetMetadata (Uri address, System.ServiceModel.Description.MetadataExchangeClientMode mode);
member this.GetMetadata : Uri * System.ServiceModel.Description.MetadataExchangeClientMode -> System.ServiceModel.Description.MetadataSet
Public Function GetMetadata (address As Uri, mode As MetadataExchangeClientMode) As MetadataSet

매개 변수

address
Uri

메타데이터를 다운로드할 원본 주소입니다.

mode
MetadataExchangeClientMode

사용할 다운로드 메커니즘입니다.

반환

MetadataSet

다운로드한 메타데이터입니다.

설명

이 메서드를 사용하여 주소를 지정하고 HTTP GET 또는 WS-Transfer Get을 사용하여 메타데이터를 다운로드할지 여부를 지정합니다.

적용 대상

GetMetadata(EndpointAddress, Uri)

지정된 경로의 지정된 주소에서 MetadataSet을 반환합니다.

public:
 System::ServiceModel::Description::MetadataSet ^ GetMetadata(System::ServiceModel::EndpointAddress ^ address, Uri ^ via);
public System.ServiceModel.Description.MetadataSet GetMetadata (System.ServiceModel.EndpointAddress address, Uri via);
member this.GetMetadata : System.ServiceModel.EndpointAddress * Uri -> System.ServiceModel.Description.MetadataSet
Public Function GetMetadata (address As EndpointAddress, via As Uri) As MetadataSet

매개 변수

address
EndpointAddress

메타데이터를 다운로드할 원본 주소입니다.

via
Uri

메시지가 사용할 경로를 나타내는 URI 주소입니다.

반환

MetadataSet

다운로드한 메타데이터입니다.

적용 대상

GetMetadata(EndpointAddress)

지정된 주소에서 MetadataSet를 반환합니다.

public:
 System::ServiceModel::Description::MetadataSet ^ GetMetadata(System::ServiceModel::EndpointAddress ^ address);
public System.ServiceModel.Description.MetadataSet GetMetadata (System.ServiceModel.EndpointAddress address);
member this.GetMetadata : System.ServiceModel.EndpointAddress -> System.ServiceModel.Description.MetadataSet
Public Function GetMetadata (address As EndpointAddress) As MetadataSet

매개 변수

address
EndpointAddress

메타데이터를 다운로드할 원본 주소입니다.

반환

MetadataSet

address에 있는 메타데이터입니다.

적용 대상

GetMetadata()

MetadataSet를 반환합니다.

public:
 System::ServiceModel::Description::MetadataSet ^ GetMetadata();
public System.ServiceModel.Description.MetadataSet GetMetadata ();
member this.GetMetadata : unit -> System.ServiceModel.Description.MetadataSet
Public Function GetMetadata () As MetadataSet

반환

MetadataSet

다운로드한 메타데이터를 포함하는 MetadataSet입니다.

예제

다음 코드 예제에서는 MetadataExchangeClient를 사용하여 다운로드 바인딩을 지정하고, 메타데이터에 대한 포함된 참조를 확인하고, 메타데이터를 다운로드하는 방법을 보여 줍니다.

// Get metadata documents.
Console.WriteLine("URI of the metadata documents retreived:");
MetadataExchangeClient metaTransfer
  = new MetadataExchangeClient(httpGetMetaAddress.Uri, MetadataExchangeClientMode.HttpGet);
metaTransfer.ResolveMetadataReferences = true;
MetadataSet otherDocs = metaTransfer.GetMetadata();
foreach (MetadataSection doc in otherDocs.MetadataSections)
    Console.WriteLine(doc.Dialect + " : " + doc.Identifier);

적용 대상