QuickOPC User's Guide and Reference
EndObtainNewCertificate Method (AbstractEasyUAClientApplication)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application Namespace > AbstractEasyUAClientApplication Class : EndObtainNewCertificate Method
A status object that represents an asynchronous call.
It is the asynchronous result returned by the BeginObtainNewCertificate method.
Handles the end of the asynchronous operation started by the BeginObtainNewCertificate method.
Syntax
'Declaration
 
Public Function EndObtainNewCertificate( _
   ByVal asyncResult As IAsyncResult _
) As IPkiCertificate
'Usage
 
Dim instance As AbstractEasyUAClientApplication
Dim asyncResult As IAsyncResult
Dim value As IPkiCertificate
 
value = instance.EndObtainNewCertificate(asyncResult)
public IPkiCertificate EndObtainNewCertificate( 
   IAsyncResult asyncResult
)
public:
IPkiCertificate^ EndObtainNewCertificate( 
   IAsyncResult^ asyncResult
) 

Parameters

asyncResult
A status object that represents an asynchronous call.
It is the asynchronous result returned by the BeginObtainNewCertificate method.

Return Value

Returns the certificate obtained from the certificate manager.
Exceptions
ExceptionDescription
A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.
A method call was invalid for the object's current state.
An operation that the thread was execution has been cancelled.
The OPC UA operation has failed.
Requirements

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

See Also