Skip to content

Reference

OpcCertificateQueryInstanceEventArgs Members

Provides the event data for the QueryInstance event.

Reference

OpcCertificateQueryInstanceEventArgs Members ​

Type
OpcCertificateQueryInstanceEventArgs
Namespace
Opc.UaFx
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Also in
Opc.UaFx.Client

Inherits members from EventArgs.

Constructors ​

OpcCertificateQueryInstanceEventArgs ​

6 overloads

OverloadDescription
OpcCertificateQueryInstanceEventArgs(string)Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path of the certificate file to load when creating the X509Certificate2 instance representing the contents of the certificate file.
OpcCertificateQueryInstanceEventArgs(string, string)Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path of the certificate file to load when creating the X509Certificate2 instance (using the password specified) representing the contents of the certificate file.
OpcCertificateQueryInstanceEventArgs(string, string, X509KeyStorageFlags)Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path of the certificate file to load when creating the X509Certificate2 instance (using the password and keyStorage flags specified) representing the contents of the certificate file.
OpcCertificateQueryInstanceEventArgs(byte[])Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData of the certificate to load when creating the X509Certificate2 instance representing the contents of the certificate data.
OpcCertificateQueryInstanceEventArgs(byte[], string)Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData of the certificate to load when creating the X509Certificate2 instance (using the password specified) representing the contents of the certificate data.
OpcCertificateQueryInstanceEventArgs(byte[], string, X509KeyStorageFlags)Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData of the certificate to load when creating the X509Certificate2 instance (using the password and keyStorage flags specified) representing the contents of the certificate data.

OpcCertificateQueryInstanceEventArgs(string) ​

Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path of the certificate file to load when creating the X509Certificate2 instance representing the contents of the certificate file.

csharp
public OpcCertificateQueryInstanceEventArgs(string path)
vbnet
Public Sub New(path As String)

Parameters

NameTypeDescription
pathStringThe full qualified path of the certificate file to load.

Exceptions

ExceptionCondition
ArgumentExceptionThe path is an empty string.
ArgumentNullExceptionThe path is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(string, string) ​

Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path of the certificate file to load when creating the X509Certificate2 instance (using the password specified) representing the contents of the certificate file.

csharp
public OpcCertificateQueryInstanceEventArgs(string path, string password)
vbnet
Public Sub New(path As String, password As String)

Parameters

NameTypeDescription
pathStringThe full qualified path of the certificate file to load.
passwordStringThe password to use when reading the certificate file or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.

Exceptions

ExceptionCondition
ArgumentExceptionThe path is an empty string.
ArgumentNullExceptionThe path is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(string, string, X509KeyStorageFlags) ​

Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the path of the certificate file to load when creating the X509Certificate2 instance (using the password and keyStorage flags specified) representing the contents of the certificate file.

csharp
public OpcCertificateQueryInstanceEventArgs(
    string path,
    string password,
    X509KeyStorageFlags keyStorage)
vbnet
Public Sub New(
    path As String,
    password As String,
    keyStorage As X509KeyStorageFlags)

Parameters

NameTypeDescription
pathStringThe full qualified path of the certificate file to load.
passwordStringThe password to use when reading the certificate file or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.
keyStorageX509KeyStorageFlagsA combination of the values defined by the X509KeyStorageFlags enumeration indicating the way the key in the certificate is to be stored after the certificate has been loaded.

Exceptions

ExceptionCondition
ArgumentExceptionThe path is an empty string.
ArgumentNullExceptionThe path is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(byte[]) ​

Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData of the certificate to load when creating the X509Certificate2 instance representing the contents of the certificate data.

csharp
public OpcCertificateQueryInstanceEventArgs(byte[] rawData)
vbnet
Public Sub New(rawData As Byte())

Parameters

NameTypeDescription
rawDataByte[]The binary information of the certificate to load.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe rawData is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(byte[], string) ​

Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData of the certificate to load when creating the X509Certificate2 instance (using the password specified) representing the contents of the certificate data.

csharp
public OpcCertificateQueryInstanceEventArgs(byte[] rawData, string password)
vbnet
Public Sub New(rawData As Byte(), password As String)

Parameters

NameTypeDescription
rawDataByte[]The binary information of the certificate to load.
passwordStringThe password to use when reading the certificate data or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe rawData is a null reference (Nothing in Visual Basic).

OpcCertificateQueryInstanceEventArgs(byte[], string, X509KeyStorageFlags) ​

Initializes a new instance of the OpcCertificateQueryInstanceEventArgs class using the rawData of the certificate to load when creating the X509Certificate2 instance (using the password and keyStorage flags specified) representing the contents of the certificate data.

csharp
public OpcCertificateQueryInstanceEventArgs(
    byte[] rawData,
    string password,
    X509KeyStorageFlags keyStorage)
vbnet
Public Sub New(
    rawData As Byte(),
    password As String,
    keyStorage As X509KeyStorageFlags)

Parameters

NameTypeDescription
rawDataByte[]The binary information of the certificate to load.
passwordStringThe password to use when reading the certificate data or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.
keyStorageX509KeyStorageFlagsA combination of the values defined by the X509KeyStorageFlags enumeration indicating the way the key in the certificate is to be stored after the certificate has been loaded.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe rawData is a null reference (Nothing in Visual Basic).

Properties ​

Certificate ​

Gets or sets the X509Certificate2 instance created either from the Path or RawData while using the Password and the KeyStorage flags considering custom, platform and operating system related restrictions.

csharp
public X509Certificate2 Certificate { get; set; }
vbnet
Public Property Certificate As X509Certificate2

Property value

X509Certificate2

An instance of the X509Certificate2 class initialized from the event data represented or a null reference (Nothing in Visual Basic) if still a X509Certificate2 instance to create.

KeyStorage ​

Gets the X509KeyStorageFlags indicating the way the key in the certificate is to be stored after the certificate has been loaded.

csharp
public X509KeyStorageFlags? KeyStorage { get; }
vbnet
Public ReadOnly Property KeyStorage As X509KeyStorageFlags?

Property value

Nullable<X509KeyStorageFlags>

A combination of the values defined by the X509KeyStorageFlags enumeration or a null reference (Nothing in Visual Basic) if the default behaviour is to be used when storing the key information contained in the certificate to load.

Password ​

Gets the password to use when reading the certificate data.

csharp
public string Password { get; }
vbnet
Public ReadOnly Property Password As String

Property value

String

The password to use when reading the certificate data or a null reference (Nothing in Visual Basic) if there is not a password required to read the certificate.

Path ​

Gets the full qualified path of the certificate file to load.

csharp
public string Path { get; }
vbnet
Public ReadOnly Property Path As String

Property value

String

The full qualified path of the certificate file to load or a null reference (Nothing in Visual Basic) in case there the certificate is to be loaded using its RawData.

RawData ​

Gets the binary information of the certificate to load.

csharp
public byte[] RawData { get; }
vbnet
Public ReadOnly Property RawData As Byte()

Property value

Byte[]

An array of byte values representing the binary information of the certificate to load or a null reference (Nothing in Visual Basic) in case there the certificate is to be loaded using the Path to the certificate file to load.