'Declaration
<ExtensionAttribute()> <NotNullAttribute()> Public Overloads Shared Function ObtainNewCertificateAsync( _ ByVal application As IEasyUAClientApplication, _ ByVal gdsEndpointDescriptor As UAEndpointDescriptor _ ) As Task(Of X509Certificate2)
'Usage
Dim application As IEasyUAClientApplication Dim gdsEndpointDescriptor As UAEndpointDescriptor Dim value As Task(Of X509Certificate2) value = IEasyUAClientApplicationExtension.ObtainNewCertificateAsync(application, gdsEndpointDescriptor)
[Extension()] [NotNull()] public static Task<X509Certificate2> ObtainNewCertificateAsync( IEasyUAClientApplication application, UAEndpointDescriptor gdsEndpointDescriptor )
[Extension()] [NotNull()] public: static Task<X509Certificate2^>^ ObtainNewCertificateAsync( IEasyUAClientApplication^ application, UAEndpointDescriptor^ gdsEndpointDescriptor )
Parameters
- application
- The OPC UA client application object that will perform the operation.
- gdsEndpointDescriptor
- The GDS endpoint acting as OPC UA certificate manager (CM).
Return Value
Returns a task that represents the asynchronous operation. The value of the
TResult
contains the certificate obtained from the certificate manager.