OPC Studio User's Guide and Reference
GetNameInfo Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.Cryptography.PkiCertificates Namespace > IPkiCertificate Interface : GetNameInfo Method
Syntax
'Declaration
 
<NotNullAttribute()>
Function GetNameInfo( _
   ByVal nameType As X509NameType, _
   ByVal forIssuer As Boolean _
) As String
'Usage
 
Dim instance As IPkiCertificate
Dim nameType As X509NameType
Dim forIssuer As Boolean
Dim value As String
 
value = instance.GetNameInfo(nameType, forIssuer)
[NotNull()]
string GetNameInfo( 
   X509NameType nameType,
   bool forIssuer
)
[NotNull()]
String^ GetNameInfo( 
   X509NameType nameType,
   bool forIssuer
) 

Parameters

nameType
forIssuer

Return Value

This method never returns null (Nothing in Visual Basic).

Exceptions
ExceptionDescription

One of the arguments provided to a method is not valid.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

An error occurred during a cryptographic operation.

This is an operation error that depends on factors external to your program, and thus cannot be always avoided. Your code must handle it appropriately.

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