ProcessModelComImpersonationLevel Enumeration
TOC
Collapse the table of content
Expand the table of content

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
Anonymous

Specifies that the client is anonymous to the server. This field is constant.

Default

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

Delegate

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

Identify

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

Impersonate

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

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
Available since 2.0
Return to top
Show:
© 2016 Microsoft