Runs the specified method in the specified security context on the current thread.
Assembly: mscorlib (in mscorlib.dll)
public static void Run( SecurityContext securityContext, ContextCallback callback, Object state )
securityContext is null.
securityContext was not acquired through a capture operation.
securityContext has already been used as the argument to a method call.
The following code example shows how to use the method to execute a method in a specified security context.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.