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
| Overload | Description |
|---|---|
| Opc | Initializes a new instance of the Opcpath of the certificate file to load when creating the X509Certificate2 instance representing the contents of the certificate file. |
| Opc | Initializes a new instance of the Opcpath of the certificate file to load when creating the X509Certificate2 instance (password specified) representing the contents of the certificate file. |
| Opc | Initializes a new instance of the Opcpath of the certificate file to load when creating the X509Certificate2 instance (password and keyStorage flags specified) representing the contents of the certificate file. |
| Opc | Initializes a new instance of the OpcrawData of the certificate to load when creating the X509Certificate2 instance representing the contents of the certificate data. |
| Opc | Initializes a new instance of the OpcrawData of the certificate to load when creating the X509Certificate2 instance (password specified) representing the contents of the certificate data. |
| Opc | Initializes a new instance of the OpcrawData of the certificate to load when creating the X509Certificate2 instance (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.
public OpcCertificateQueryInstanceEventArgs(string path)Public Sub New(path As String)Parameters
| Name | Type | Description |
|---|---|---|
path | String | The full qualified path of the certificate file to load. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The path is an empty string. |
| Argument | The path is a null reference ( |
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.
public OpcCertificateQueryInstanceEventArgs(string path, string password)Public Sub New(path As String, password As String)Parameters
| Name | Type | Description |
|---|---|---|
path | String | The full qualified path of the certificate file to load. |
password | String | The password to use when reading the certificate file or a null reference ( |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The path is an empty string. |
| Argument | The path is a null reference ( |
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.
public OpcCertificateQueryInstanceEventArgs(
string path,
string password,
X509KeyStorageFlags keyStorage)Public Sub New(
path As String,
password As String,
keyStorage As X509KeyStorageFlags)Parameters
| Name | Type | Description |
|---|---|---|
path | String | The full qualified path of the certificate file to load. |
password | String | The password to use when reading the certificate file or a null reference ( |
keyStorage | X509 | A combination of the values defined by the X509 |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The path is an empty string. |
| Argument | The path is a null reference ( |
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.
public OpcCertificateQueryInstanceEventArgs(byte[] rawData)Public Sub New(rawData As Byte())Parameters
| Name | Type | Description |
|---|---|---|
rawData | Byte[] | The binary information of the certificate to load. |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The rawData is a null reference ( |
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.
public OpcCertificateQueryInstanceEventArgs(byte[] rawData, string password)Public Sub New(rawData As Byte(), password As String)Parameters
| Name | Type | Description |
|---|---|---|
rawData | Byte[] | The binary information of the certificate to load. |
password | String | The password to use when reading the certificate data or a null reference ( |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The rawData is a null reference ( |
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.
public OpcCertificateQueryInstanceEventArgs(
byte[] rawData,
string password,
X509KeyStorageFlags keyStorage)Public Sub New(
rawData As Byte(),
password As String,
keyStorage As X509KeyStorageFlags)Parameters
| Name | Type | Description |
|---|---|---|
rawData | Byte[] | The binary information of the certificate to load. |
password | String | The password to use when reading the certificate data or a null reference ( |
keyStorage | X509 | A combination of the values defined by the X509 |
Exceptions
| Exception | Condition |
|---|---|
| Argument | The rawData is a null reference ( |
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.
public X509Certificate2 Certificate { get; set; }Public Property Certificate As X509Certificate2Property value
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.
public X509KeyStorageFlags? KeyStorage { get; }Public ReadOnly Property KeyStorage As X509KeyStorageFlags?Property value
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.
public string Password { get; }Public ReadOnly Property Password As StringProperty value
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.
public string Path { get; }Public ReadOnly Property Path As StringProperty value
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.
public byte[] RawData { get; }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.

