Connectivity Software User's Guide and Reference
CertCreateCertificateContext Method



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Licensing Namespace > Crypto.NativeMethods Class : CertCreateCertificateContext Method

The value of this parameter cannot be null (Nothing in Visual Basic).

Syntax
'Declaration
 
Public Shared Function CertCreateCertificateContext( _
   ByVal dwCertEncodingType As Integer, _
   ByVal pbCertEncoded() As Byte, _
   ByVal cbCertEncoded As Integer _
) As IntPtr
'Usage
 
Dim dwCertEncodingType As Integer
Dim pbCertEncoded() As Byte
Dim cbCertEncoded As Integer
Dim value As IntPtr
 
value = Crypto.NativeMethods.CertCreateCertificateContext(dwCertEncodingType, pbCertEncoded, cbCertEncoded)
public static IntPtr CertCreateCertificateContext( 
   int dwCertEncodingType,
   byte[] pbCertEncoded,
   int cbCertEncoded
)
public:
static IntPtr CertCreateCertificateContext( 
   int dwCertEncodingType,
   array<byte>^ pbCertEncoded,
   int cbCertEncoded
) 

Parameters

dwCertEncodingType
pbCertEncoded

The value of this parameter cannot be null (Nothing in Visual Basic).

cbCertEncoded
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also