コード例 #1
0
 /// <summary>
 ///
 /// </summary>
 public void Dispose()
 {
     if (Handle != Secur32.SecHandle.Zero)
     {
         Secur32.FreeCredentialsHandle(ref Handle);
     }
 }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        public void Dispose()
        {
            if (_context != Secur32.SecHandle.Zero)
            {
                Secur32.DeleteSecurityContext(ref _context);
            }

            if (_credentials != Secur32.SecHandle.Zero)
            {
                Secur32.FreeCredentialsHandle(ref _credentials);
            }
        }