System.Net.Security.SafeSspiAuthDataHandle.SafeFreeContextBuffer.SafeFreeContextBuffer.SetContextAttributes_SECURITY C# (CSharp) Méthode

SetContextAttributes_SECURITY() private static méthode

private static SetContextAttributes_SECURITY ( System.Net.Security.SafeDeleteContext phContext, Interop contextAttribute, byte buffer ) : int
phContext System.Net.Security.SafeDeleteContext
contextAttribute Interop
buffer byte
Résultat int
        private static int SetContextAttributes_SECURITY(
            SafeDeleteContext phContext,
            Interop.SspiCli.ContextAttribute contextAttribute,
            byte[] buffer)
        {
            try
            {
                bool ignore = false;
                phContext.DangerousAddRef(ref ignore);
                return Interop.SspiCli.SetContextAttributesW(ref phContext._handle, contextAttribute, buffer, buffer.Length);
            }
            finally
            {
                phContext.DangerousRelease();
            }
        }
    }