MetadataExchangeClient.GetChannelFactory 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当在派生类中重写时,返回用于发出 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 检索元数据时调用此方法。