ProcessModelComImpersonationLevel Enumeration
Specifies the authentication level for COM security.
Assembly: System.Web (in System.Web.dll)
| Member name | Description | |
|---|---|---|
| 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;
Available since 2.0