ProcessModelComAuthenticationLevel ProcessModelComAuthenticationLevel ProcessModelComAuthenticationLevel ProcessModelComAuthenticationLevel Enum

定义

指定 DCOM 安全的身份验证级别。Specifies the level of authentication for DCOM security.

public enum class ProcessModelComAuthenticationLevel
public enum ProcessModelComAuthenticationLevel
type ProcessModelComAuthenticationLevel = 
Public Enum ProcessModelComAuthenticationLevel
继承
ProcessModelComAuthenticationLevelProcessModelComAuthenticationLevelProcessModelComAuthenticationLevelProcessModelComAuthenticationLevel

字段

Call Call Call Call 1

指定若服务器在每个远程过程调用开始时接收到请求,DCOM 将验证客户端的凭据。Specifies that DCOM authenticates the credentials of the client when the server receives the request at the beginning of each remote procedure call.

Connect Connect Connect Connect 2

指定只有当客户端与服务器建立关系时,DCOM 才验证客户端的凭据。Specifies that DCOM authenticates the credentials of the client only when the client establishes a relationship with the server. 这是默认值。This is the default value.

Default Default Default Default 3

指定 DCOM 使用其常规安全协商算法确定身份验证级别。Specifies that DCOM determines the authentication level using its normal security-negotiation algorithm.

None None None None 0

不指定身份验证。Specifies no authentication. 此字段为常数。This field is constant.

Pkt Pkt Pkt Pkt 4

指定由 DCOM 验证接收的所有数据是否来自期望的客户端。Specifies that DCOM verifies that all data received is from the expected client. 数据报传输始终使用 Pkt 身份验证。The datagram transports always use Pkt authentication.

PktIntegrity PktIntegrity PktIntegrity PktIntegrity 5

指定 DCOM 验证并确认客户端和服务器之间传输的数据均未被修改。Specifies that DCOM authenticates and verifies that none of the data transferred between the client and the server has been modified.

PktPrivacy PktPrivacy PktPrivacy PktPrivacy 6

指定 DCOM 验证所有先前级别并加密每个远程过程调用的参数值。Specifies that DCOM authenticates all previous levels and encrypts the argument value of each remote procedure call.

示例

下面的代码示例演示如何获取当前ComAuthenticationLevel属性值,然后将设置ComAuthenticationLevel属性调用的新值。The following code example shows how to get the current ComAuthenticationLevel property value and then set the ComAuthenticationLevel property to a new value of Call.


// Get the current ComAuthenticationLevel property value.
ProcessModelComAuthenticationLevel comAuthLevel = 
   processModelSection.ComAuthenticationLevel;

// Set the ComAuthenticationLevel property to
// ProcessModelComAuthenticationLevel.Call.
processModelSection.ComAuthenticationLevel =
    ProcessModelComAuthenticationLevel.Call;

' Get the current ComAuthenticationLevel property value.
   Dim comAuthLevel _
   As ProcessModelComAuthenticationLevel = _
   processModelSection.ComAuthenticationLevel

' Set the ComAuthenticationLevel property to
' ProcessModelComAuthenticationLevel.Call.
   processModelSection.ComAuthenticationLevel = _
   ProcessModelComAuthenticationLevel.Call


注解

ProcessModelComAuthenticationLevel 定义要设置时使用的值ProcessModelSection.ComAuthenticationLevel属性。ProcessModelComAuthenticationLevel defines the values to use when you set the ProcessModelSection.ComAuthenticationLevel property.

默认值为 ConnectThe default is Connect.

备注

Connect设置才有用仅当使用 ASP.NET 进程模型 (Internet Information Services [IIS] 5.n 或兼容的模式下在 IIS 6 上仅)。The Connect settings are relevant only when you use the ASP.NET process model (Internet Information Services [IIS] 5.n or compatible mode on IIS 6 only).

适用于

另请参阅