共用方式為


ServiceAuthenticationManager.Authenticate 方法

定義

驗證指定的訊息。

public:
 virtual System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ Authenticate(System::Collections::ObjectModel::ReadOnlyCollection<System::IdentityModel::Policy::IAuthorizationPolicy ^> ^ authPolicy, Uri ^ listenUri, System::ServiceModel::Channels::Message ^ % message);
public virtual System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> Authenticate (System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> authPolicy, Uri listenUri, ref System.ServiceModel.Channels.Message message);
abstract member Authenticate : System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> * Uri * Message -> System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy>
override this.Authenticate : System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy> * Uri * Message -> System.Collections.ObjectModel.ReadOnlyCollection<System.IdentityModel.Policy.IAuthorizationPolicy>
Public Overridable Function Authenticate (authPolicy As ReadOnlyCollection(Of IAuthorizationPolicy), listenUri As Uri, ByRef message As Message) As ReadOnlyCollection(Of IAuthorizationPolicy)

參數

authPolicy
ReadOnlyCollection<IAuthorizationPolicy>

授權原則。

listenUri
Uri

訊息接收到的 URI。

message
Message

要驗證的訊息。

傳回

ReadOnlyCollection<IAuthorizationPolicy>

傳回 ReadOnlyCollection<T>

適用於