通过


ProcessModelComAuthenticationLevel 枚举

定义

指定 DCOM 安全性的身份验证级别。

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

字段

名称 说明
None 0

指定无身份验证。 此字段为常量。

Call 1

指定当服务器在每个远程过程调用开始时收到请求时,DCOM 对客户端的凭据进行身份验证。

Connect 2

指定仅当客户端与服务器建立关系时,DCOM 才会对客户端的凭据进行身份验证。 这是默认值。

Default 3

指定 DCOM 使用其正常的安全协商算法确定身份验证级别。

Pkt 4

指定 DCOM 验证接收的所有数据是否来自预期的客户端。 数据报传输始终使用 Pkt 身份验证。

PktIntegrity 5

指定 DCOM 进行身份验证并验证客户端和服务器之间传输的任何数据是否已修改。

PktPrivacy 6

指定 DCOM 对所有以前的级别进行身份验证,并加密每个远程过程调用的参数值。

示例

以下示例演示如何获取当前 ProcessModelSection.ComAuthenticationLevel 属性值,然后将其设置为 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 属性时要使用的值。

默认值为 Connect

注释

ProcessModelComAuthenticationLevel 当在 IIS 6 上使用 ASP.NET 进程模型(Internet Information Services [IIS] 5.n 或兼容模式)时,设置才相关。

适用于

另请参阅