Επεξεργασία

Κοινή χρήση μέσω


PeerResolver.Initialize Method

Definition

Initializes the current peer resolver instance with the new supplied endpoint address and settings.

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)

Parameters

address
EndpointAddress

EndpointAddress that contains the new endpoint address of this peer resolver instance.

binding
Binding

Binding that specifies the new network binding for this peer resolver.

credentials
ClientCredentials

ClientCredentials that specifies the new client credentials for this peer resolver.

referralPolicy
PeerReferralPolicy

PeerReferralPolicy that specifies the new referral policy for this peer resolver.

Remarks

This method simply initializes the existing peer resolver instance; it does not create a new one. To create a new peer resolver, call the CreatePeerResolver method on the corresponding binding element (for example, PnrpPeerResolverBindingElement).

Applies to