PeerResolver.Initialize 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用新提供的终结点地址和设置初始化当前对等解析程序实例。
public:
virtual void Initialize(System::ServiceModel::EndpointAddress ^ address, System::ServiceModel::Channels::Binding ^ binding, System::ServiceModel::Description::ClientCredentials ^ credentials, System::ServiceModel::PeerResolvers::PeerReferralPolicy referralPolicy);
public virtual void Initialize (System.ServiceModel.EndpointAddress address, System.ServiceModel.Channels.Binding binding, System.ServiceModel.Description.ClientCredentials credentials, System.ServiceModel.PeerResolvers.PeerReferralPolicy referralPolicy);
abstract member Initialize : System.ServiceModel.EndpointAddress * System.ServiceModel.Channels.Binding * System.ServiceModel.Description.ClientCredentials * System.ServiceModel.PeerResolvers.PeerReferralPolicy -> unit
override this.Initialize : System.ServiceModel.EndpointAddress * System.ServiceModel.Channels.Binding * System.ServiceModel.Description.ClientCredentials * System.ServiceModel.PeerResolvers.PeerReferralPolicy -> unit
Public Overridable Sub Initialize (address As EndpointAddress, binding As Binding, credentials As ClientCredentials, referralPolicy As PeerReferralPolicy)
参数
- address
- EndpointAddress
包含此对等解析程序实例的新终结点地址的 EndpointAddress。
- credentials
- ClientCredentials
为此对等解析程序指定新客户端凭据的 ClientCredentials。
- referralPolicy
- PeerReferralPolicy
为此对等解析程序指定新引用策略的 PeerReferralPolicy。
注解
此方法仅初始化现有对等解析程序实例;它并不创建新解析程序。 若要创建新的对等解析程序,请在相应的绑定元素(例如,PnrpPeerResolverBindingElement)上调用 CreatePeerResolver 方法。