MetadataExchangeClient.GetChannelFactory 方法

定义

当在派生类中重写时,返回用于发出 WS-Transfer 元数据请求的通道工厂。

protected public:
 virtual System::ServiceModel::ChannelFactory<System::ServiceModel::Description::IMetadataExchange ^> ^ GetChannelFactory(System::ServiceModel::EndpointAddress ^ metadataAddress, System::String ^ dialect, System::String ^ identifier);
protected internal virtual System.ServiceModel.ChannelFactory<System.ServiceModel.Description.IMetadataExchange> GetChannelFactory (System.ServiceModel.EndpointAddress metadataAddress, string dialect, string identifier);
abstract member GetChannelFactory : System.ServiceModel.EndpointAddress * string * string -> System.ServiceModel.ChannelFactory<System.ServiceModel.Description.IMetadataExchange>
override this.GetChannelFactory : System.ServiceModel.EndpointAddress * string * string -> System.ServiceModel.ChannelFactory<System.ServiceModel.Description.IMetadataExchange>
Protected Friend Overridable Function GetChannelFactory (metadataAddress As EndpointAddress, dialect As String, identifier As String) As ChannelFactory(Of IMetadataExchange)

参数

metadataAddress
EndpointAddress

元数据地址。

dialect
String

元数据的方言。

identifier
String

元数据的标识符。

返回

发出 WS-Transfer 元数据请求的 ChannelFactory<TChannel> 类型的 IRequestChannel

注解

当为 MetadataReference 检索元数据时调用此方法。

适用于