QuickOPC User's Guide and Reference
WithUserNameIdentity Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Extensions Namespace > UAEndpointDescriptorExtension Class : WithUserNameIdentity Method
The OPC UA endpoint descriptor.
The user name.
The password.
Creates a copy of an endpoint descriptor, with specified user name identity.
Syntax
'Declaration
 
<ExtensionAttribute()>
<NotNullAttribute()>
Public Shared Function WithUserNameIdentity( _
   ByVal endpointDescriptor As UAEndpointDescriptor, _
   ByVal userName As String, _
   ByVal password As String _
) As UAEndpointDescriptor
'Usage
 
Dim endpointDescriptor As UAEndpointDescriptor
Dim userName As String
Dim password As String
Dim value As UAEndpointDescriptor
 
value = UAEndpointDescriptorExtension.WithUserNameIdentity(endpointDescriptor, userName, password)
[Extension()]
[NotNull()]
public static UAEndpointDescriptor WithUserNameIdentity( 
   UAEndpointDescriptor endpointDescriptor,
   string userName,
   string password
)
[Extension()]
[NotNull()]
public:
static UAEndpointDescriptor^ WithUserNameIdentity( 
   UAEndpointDescriptor^ endpointDescriptor,
   String^ userName,
   String^ password
) 

Parameters

endpointDescriptor
The OPC UA endpoint descriptor.
userName
The user name.
password
The password.

Return Value

Returns a clone of endpointDescriptor, with the user name identity having the specified user name userName and password password.
Requirements

Target Platforms: .NET Framework: Windows 10, Windows Server 2012; .NET Core: Linux, macOS, Microsoft Windows

See Also

Reference

UAEndpointDescriptorExtension Class
UAEndpointDescriptorExtension Members