Skip to content

Reference

OpcClassicIdentity Members

Represents the identity of a user used to authenticate at the host of an OPC Classic server using DCOM.

Reference

OpcClassicIdentity Members ​

Type
OpcClassicIdentity
Namespace
Opc.UaFx.Classic
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcIdentity.

Constructors ​

OpcClassicIdentity ​

Initializes a new instance of the OpcClassicIdentity class using the specified userName and password.

csharp
public OpcClassicIdentity(string userName, string password)
vbnet
Public Sub New(userName As String, password As String)

Parameters

NameTypeDescription
userNameStringThe name of the user, optionally preceded by the domain and a backslash (e.g. "domain\user").
passwordStringThe password of the user.

Properties ​

DisplayName ​

override

Gets the name of the identity to display.

csharp
public override string DisplayName { get; }
vbnet
Public Overrides ReadOnly Property DisplayName As String

Property value

String

The name of the user, preceded by the domain and a backslash if a domain has been specified.

Overrides

DisplayName

Methods ​

Impersonate ​

override

Impersonates the identity; not supported by a DCOM identity.

csharp
public override OpcImpersonationContext Impersonate()
vbnet
Public Overrides Function Impersonate() As OpcImpersonationContext

Returns

OpcImpersonationContext

The method does not return.

Exceptions

ExceptionCondition
NotSupportedExceptionThe identity does not support impersonation.

Overrides

Impersonate

ToString ​

override

Returns a string which represents the identity.

csharp
public override string ToString()
vbnet
Public Overrides Function ToString() As String

Returns

String

The DisplayName in the format "DCOM-Identity=[name]".

Overrides

ToString()