AuthenticationOption AuthenticationOption AuthenticationOption AuthenticationOption Enum

定义

指定远程过程调用 (RPC) 身份验证机制。 只在当 ActivationOption 设置为 Server 时适用。Applicable only when the ActivationOption is set to Server.

public enum class AuthenticationOption
[System.Serializable]
public enum AuthenticationOption
type AuthenticationOption = 
Public Enum AuthenticationOption
继承
AuthenticationOptionAuthenticationOptionAuthenticationOptionAuthenticationOption
属性

字段

Call Call Call Call 3

在每一调用的开始时验证凭据。Authenticates credentials at the beginning of every call.

Connect Connect Connect Connect 2

只在进行连接时验证凭据。Authenticates credentials only when the connection is made.

Default Default Default Default 0

将默认的身份验证级别用于指定的身份验证服务。Uses the default authentication level for the specified authentication service. 在 COM+ 中,此设置由 DefaultAuthenticationLevel 集合中的 LocalComputer 属性提供。In COM+, this setting is provided by the DefaultAuthenticationLevel property in the LocalComputer collection.

Integrity Integrity Integrity Integrity 5

验证凭据并验证在转换中没有修改任何调用数据。Authenticates credentials and verifies that no call data has been modified in transit.

None None None None 1

不进行身份验证。Authentication does not occur.

Packet Packet Packet Packet 4

验证凭据并验证接收了所有调用数据。Authenticates credentials and verifies that all call data is received.

Privacy Privacy Privacy Privacy 6

验证凭据并加密数据包,其中包括数据以及发送方的标识和签名。Authenticates credentials and encrypts the packet, including the data and the sender's identity and signature.

示例

下面的代码示例演示如何将此枚举与ApplicationAccessControlAttribute属性一起使用。The following code example demonstrates the use of this enumeration in conjunction with the ApplicationAccessControlAttribute attribute.

// Set component access controls.
[assembly:ApplicationAccessControl(Authentication=AuthenticationOption::Privacy,
ImpersonationLevel=ImpersonationLevelOption::Identify,
AccessChecksLevel=AccessChecksLevelOption::ApplicationComponent)];
// Set component access controls.
[assembly: ApplicationAccessControl(Authentication=AuthenticationOption.Privacy,
                                    ImpersonationLevel=ImpersonationLevelOption.Identify,
                                    AccessChecksLevel=AccessChecksLevelOption.ApplicationComponent)]
' Set component access controls.
<Assembly: ApplicationAccessControl(Authentication:=AuthenticationOption.Privacy, ImpersonationLevel:=ImpersonationLevelOption.Identify, AccessChecksLevel:=AccessChecksLevelOption.ApplicationComponent)> 

适用于