System.Data.SqlClient.SNINativeMethodWrapper.SNIInitialize C# (CSharp) Method

SNIInitialize() static private method

static private SNIInitialize ( ) : uint
return uint
        internal static uint SNIInitialize()
        {
            return SNIInitialize(IntPtr.Zero);
        }

Same methods

SNINativeMethodWrapper::SNIInitialize ( [ pmo ) : uint

Usage Example

 private SNILoadHandle() : base(IntPtr.Zero, true)
 {
     this.ReadAsyncCallbackDispatcher  = new SNINativeMethodWrapper.SqlAsyncCallbackDelegate(SNILoadHandle.ReadDispatcher);
     this.WriteAsyncCallbackDispatcher = new SNINativeMethodWrapper.SqlAsyncCallbackDelegate(SNILoadHandle.WriteDispatcher);
     this._sniStatus = uint.MaxValue;
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
     }
     finally
     {
         this._sniStatus = SNINativeMethodWrapper.SNIInitialize();
         uint qInfo = 0;
         if (this._sniStatus == 0)
         {
             SNINativeMethodWrapper.SNIQueryInfo(SNINativeMethodWrapper.QTypes.SNI_QUERY_CLIENT_ENCRYPT_POSSIBLE, ref qInfo);
         }
         this._encryptionOption = (qInfo == 0) ? EncryptionOptions.NOT_SUP : EncryptionOptions.OFF;
         base.handle            = (IntPtr)1;
     }
 }
All Usage Examples Of System.Data.SqlClient.SNINativeMethodWrapper::SNIInitialize