ProcessModelComImpersonationLevel ProcessModelComImpersonationLevel ProcessModelComImpersonationLevel ProcessModelComImpersonationLevel Enum

定义

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

public enum class ProcessModelComImpersonationLevel
public enum ProcessModelComImpersonationLevel
type ProcessModelComImpersonationLevel = 
Public Enum ProcessModelComImpersonationLevel
继承
ProcessModelComImpersonationLevelProcessModelComImpersonationLevelProcessModelComImpersonationLevelProcessModelComImpersonationLevel

字段

Anonymous Anonymous Anonymous Anonymous 1

指定客户端对于服务器而言是匿名的。Specifies that the client is anonymous to the server. 服务器可以模拟客户端,但模拟标记将不包含任何信息。The server can impersonate the client, but the impersonation token will not contain any information.

Default Default Default Default 0

指定 DCOM 使用其常规安全协商算法确定模拟级别。Specifies that DCOM determines the impersonation level using its normal security-negotiation algorithm.

Delegate Delegate Delegate Delegate 2

指定服务器进程可以在代表客户端的同时模拟客户端的安全上下文。Specifies that the server process can impersonate the client's security context while acting on behalf of the client. 服务器进程可以对其他服务器发出调用,同时代表客户端使用掩蔽进行操作。The server process can make outgoing calls to other servers while acting on behalf of the client by using cloaking. 服务器可以使用其他计算机上的客户端安全上下文作为客户端访问本地和远程资源。The server can use the client's security context on other computers to access local and remote resources as the client. 当进程在此级别模拟客户端时,模拟令牌可以跨任意数量的计算机边界传递。When the process is impersonating the client at this level, the impersonation token can be passed across any number of computer boundaries.

Identify Identify Identify Identify 3

指定服务器可以获取客户端的标识。Specifies that the server can obtain the client's identity. 服务器可以模拟客户端进行访问控制列表 (ACL) 检查,但不能作为客户端访问系统对象。The server can impersonate the client for access control list (ACL) checking, but it cannot access system objects as the client.

Impersonate Impersonate Impersonate Impersonate 4

指定服务器进程可以在代表客户端的同时模拟客户端的安全上下文。Specifies that the server process can impersonate the client's security context while acting on behalf of the client. 此模拟级别可用于访问本地资源(如文件)。This level of impersonation can be used to access local resources such as files. 当进程在此级别模拟客户端时,模拟令牌只能通过一个计算机边界传递。When the process is impersonating the client at this level, the impersonation token can be passed across only one computer boundary.

示例

下面的示例演示如何访问 ComImpersonationLevel 属性。The following example shows how to access the ComImpersonationLevel property.


// Get the current ComImpersonationLevel property value.
ProcessModelComImpersonationLevel comImpLevel = 
    processModelSection.ComImpersonationLevel;

// Set the ComImpersonationLevel property to
// ProcessModelComImpersonationLevel.Anonymous.
processModelSection.ComImpersonationLevel = 
    ProcessModelComImpersonationLevel.Anonymous;

' Get the current ComImpersonationLevel property value.
   Dim comImpLevel _
   As ProcessModelComImpersonationLevel = _
   processModelSection.ComImpersonationLevel

' Set the ComImpersonationLevel property to
' ProcessModelComImpersonationLevel.Anonymous.
   processModelSection.ComImpersonationLevel = _
   ProcessModelComImpersonationLevel.Anonymous

注解

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

默认值为 ImpersonateThe default value is Impersonate.

适用于

另请参阅