Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ProcessModelComImpersonationLevel Enumeration

Specifies the authentication level for COM security.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)
public enum ProcessModelComImpersonationLevel
Member nameDescription
AnonymousSpecifies that the client is anonymous to the server. This field is constant.

The server can impersonate the client, but the impersonation token will not contain any information.

DefaultSpecifies that DCOM determines the impersonation level. This field is constant.

DCOM determines the impersonation level, using its normal security-negotiation algorithm.

DelegateSpecifies that the server process can impersonate the client's security context while acting on behalf of the client. This field is constant.

The server process can make outgoing calls to other servers while acting on behalf of the client, 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.

IdentifySpecifies that the server can obtain the client's identity. This field is constant.

The server can impersonate the client for access control list (ACL) checking, but it cannot access system objects as the client.

ImpersonateSpecifies that the server process can impersonate the client's security context while acting on behalf of the client. This field is constant.

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.

The ProcessModelComImpersonationLevel class enumerates the values to use when you set the ComImpersonationLevel property.

The default value is Impersonate.

The following code 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;

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.