Export (0) Print
Expand All

ProcessModelSection.ComImpersonationLevel Property

Gets or sets a value indicating the level of authentication for COM security.

Namespace: System.Web.Configuration
Assembly: System.Web (in system.web.dll)

public ProcessModelComImpersonationLevel ComImpersonationLevel { get; set; }
/** @property */
public ProcessModelComImpersonationLevel get_ComImpersonationLevel ()

/** @property */
public void set_ComImpersonationLevel (ProcessModelComImpersonationLevel value)

public function get ComImpersonationLevel () : ProcessModelComImpersonationLevel

public function set ComImpersonationLevel (value : ProcessModelComImpersonationLevel)

Not applicable.

Property Value

One of the ProcessModelComImpersonationLevel values. The default value is Impersonate.

When this property value is set to Default, DCOM determines the impersonation level using its normal security-negotiation algorithm. The default value assigned to this property, as specified in the Machine.config file, is Impersonate. In this case, the server process can impersonate the client's security context while acting on behalf of the client.

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;


Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft