ProcessModelComImpersonationLevel Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: