コード例 #1
0
        //
        // Summary:
        //  Creates a new CryptoHandle. ParamType has information as to what
        //  nativeParameters has to be marshaled into.
        //
        protected CryptoHandle(InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr nativeParameters, Type paramType)
        {
            m_internalHandle = nativeHandle;

            m_internalHandle.Initialize(expiration, Marshal.PtrToStructure(nativeParameters, paramType));
        }
コード例 #2
0
        //
        // Summary:
        //  Creates a new CryptoHandle. ParamType has information as to what
        //  nativeParameters has to be marshaled into.
        //
        protected CryptoHandle(InternalRefCountedHandle nativeHandle, DateTime expiration, IntPtr nativeParameters, Type paramType)
        {
            m_internalHandle = nativeHandle;

            m_internalHandle.Initialize(expiration, Marshal.PtrToStructure(nativeParameters, paramType));
        }