System.Net.SSPIAuthType.GetSecurityContextToken C# (CSharp) Method

GetSecurityContextToken() private static method

private static GetSecurityContextToken ( System.Net.SafeDeleteContext phContext, SecurityContextTokenHandle &safeHandle ) : int
phContext System.Net.SafeDeleteContext
safeHandle SecurityContextTokenHandle
return int
        private static int GetSecurityContextToken(SafeDeleteContext phContext, out SecurityContextTokenHandle safeHandle)
        {
            safeHandle = null;

            try
            {
                bool ignore = false;
                phContext.DangerousAddRef(ref ignore);
                return Interop.SspiCli.QuerySecurityContextToken(ref phContext._handle, out safeHandle);
            }
            finally
            {
                phContext.DangerousRelease();
            }
        }