OPC Studio User's Guide and Reference
SetServerCertificateByteArray Method (UADiscoveryElement)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Discovery Namespace > UADiscoveryElement Class : SetServerCertificateByteArray Method
Sets the encoded application instance certificate issued to the server.
Syntax
'Declaration
 
<BrowsableAttribute(False)>
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>
Public Sub SetServerCertificateByteArray( _
   ByVal value As Object _
) 
'Usage
 
Dim instance As UADiscoveryElement
Dim value As Object
 
instance.SetServerCertificateByteArray(value)
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public void SetServerCertificateByteArray( 
   object value
)
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Advanced)]
public:
void SetServerCertificateByteArray( 
   Object^ value
) 

Parameters

value
Exceptions
ExceptionDescription

An invalid casting or explicit conversion has been attempted.

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.

Remarks

Intended for certain COM callers. You can simply use the ServerCertificateByteArray property setter in .NET instead.

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