ServiceAuthenticationBehavior 类

定义

描述服务的身份验证行为。Describes the service's authentication behavior.

public ref class ServiceAuthenticationBehavior sealed : System::ServiceModel::Description::IServiceBehavior
public sealed class ServiceAuthenticationBehavior : System.ServiceModel.Description.IServiceBehavior
type ServiceAuthenticationBehavior = class
    interface IServiceBehavior
Public NotInheritable Class ServiceAuthenticationBehavior
Implements IServiceBehavior
继承
ServiceAuthenticationBehavior
实现

构造函数

ServiceAuthenticationBehavior()

创建 ServiceAuthenticationBehavior 的新实例。Creates a new instance of ServiceAuthenticationBehavior.

属性

AuthenticationSchemes

获取或设置表示服务使用的身份验证方案的值。Gets or sets the value that represents the authentication scheme used by the service.

ServiceAuthenticationManager

获取与此行为关联的 ServiceAuthenticationManagerGets the ServiceAuthenticationManager associated with this behavior.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ShouldSerializeAuthenticationSchemes()

返回是否服务应序列化身份验证方案。Returns whether the service should serialize authentication schemes.

ShouldSerializeServiceAuthenticationManager()

如果应序列化 ServiceAuthenticationManager,则为 true;否则为 falsetrue if the ServiceAuthenticationManager should be serialized; otherwise, false.

ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IServiceBehavior.AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection)

AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection) 方法的实现。An implementation of the AddBindingParameters(ServiceDescription, ServiceHostBase, Collection<ServiceEndpoint>, BindingParameterCollection) method.

IServiceBehavior.ApplyDispatchBehavior(ServiceDescription, ServiceHostBase)

ApplyDispatchBehavior(ServiceDescription, ServiceHostBase) 方法的实现。An implementation of the ApplyDispatchBehavior(ServiceDescription, ServiceHostBase) method.

IServiceBehavior.Validate(ServiceDescription, ServiceHostBase)

IServiceBehavior.Validate(ServiceDescription, ServiceHostBase) 方法的实现。An implementation of the IServiceBehavior.Validate(ServiceDescription, ServiceHostBase) method.

适用于