Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

SecurityContext.Impersonate�Method�

Impersonate this SecurityContext

[Visual�Basic]
MustOverride�Public�Function�Impersonate( _
���ByVal state�As�Object�_
)�As�IDisposable
[C#]
public�abstract�IDisposable�Impersonate(
���objectstate
);

Parameters

state
State supplied by the caller

Return Value

An IDisposable instance that will revoke the impersonation of this SecurityContext, or null

Remarks

Impersonate this security context. Further calls on the current thread should now be made in the security context provided by this object. When the IDisposable result Dispose method is called the security context of the thread should be reverted to the state it was in before Impersonate was called.

See Also

SecurityContext Class | log4net.Core Namespace