Reference
OpcClientIdentity Members
Represents a user identity which is defined by a user name and a password.
Reference
OpcClientIdentity Members
- Type
- OpcClientIdentity
- Namespace
- Opc.UaFx.Client
- Assembly
- Opc.UaFx.Advanced.dll
- Package
- Opc.UaFx.Advanced v2.59.0
- Also in
- Opc.UaFx.Client
Inherits members from OpcUserIdentity, OpcIdentity.
Constructors
OpcClientIdentity
Initializes a new instance of the OpcClientIdentity class using the userName and password specified.
public OpcClientIdentity(string userName, string password)Public Sub New(userName As String, password As String)Parameters
| Name | Type | Description |
|---|---|---|
userName | String | The name of the user. |
password | String | The password of the user. |
Properties
DisplayName
Gets the name of the identity to display.
public override string DisplayName { get; }Public Overrides ReadOnly Property DisplayName As StringProperty value
The UserName of the identity.
Overrides
Password
Gets the password of the user.
public string Password { get; }Public ReadOnly Property Password As StringProperty value
The password of the user.
UserName
Gets the name of the user.
public string UserName { get; }Public ReadOnly Property UserName As StringProperty value
The name of the user.
Methods
Impersonate
Returns an impersonation context which does not impersonate the user.
public override OpcImpersonationContext Impersonate()Public Overrides Function Impersonate() As OpcImpersonationContextReturns
An OpcImpersonationContext whose Undo method does nothing.
Overrides
Matches
Determines whether the identity is defined by the userName and password specified.
public bool Matches(string userName, string password)Public Function Matches(userName As String, password As String) As BooleanParameters
| Name | Type | Description |
|---|---|---|
userName | String | The name of the user to compare. |
password | String | The password of the user to compare. |
Returns
The value true if the userName and the password are equal to the UserName and the Password of the identity; otherwise the value false.
Exceptions
| Exception | Condition |
|---|---|
| Argument | The userName is an empty string. |
| Argument | The userName or password is a null reference ( |

