System.Security.SecurityContext.SecurityContext.SuppressFlowWindowsIdentity C# (CSharp) Method

SuppressFlowWindowsIdentity() static public method

static public SuppressFlowWindowsIdentity ( ) : AsyncFlowControl
return System.Threading.AsyncFlowControl
		static public AsyncFlowControl SuppressFlowWindowsIdentity ()
		{
			Thread t = Thread.CurrentThread;
			t.ExecutionContext.SecurityContext.WindowsIdentityFlowSuppressed = true;
			return new AsyncFlowControl (t, AsyncFlowControlType.Security);
		}
	}