QuickOPC User's Guide and Reference
OverrideBy Method (UserIdentityExtension)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.IdentityModel.User.Extensions Namespace > UserIdentityExtension Class : OverrideBy Method
Specifies user's identity, using one or more token infos, such as anonymous, user name, Kerberos, or X.509 certificate.
User identity with overriding token infos.
Overrides this UserIdentity by other user identity.
Syntax
'Declaration
 
<ExtensionAttribute()>
<NotNullAttribute()>
Public Shared Function OverrideBy( _
   ByVal userIdentity As UserIdentity, _
   ByVal other As UserIdentity _
) As UserIdentity
'Usage
 
Dim userIdentity As UserIdentity
Dim other As UserIdentity
Dim value As UserIdentity
 
value = UserIdentityExtension.OverrideBy(userIdentity, other)
[Extension()]
[NotNull()]
public static UserIdentity OverrideBy( 
   UserIdentity userIdentity,
   UserIdentity other
)
[Extension()]
[NotNull()]
public:
static UserIdentity^ OverrideBy( 
   UserIdentity^ userIdentity,
   UserIdentity^ other
) 

Parameters

userIdentity
Specifies user's identity, using one or more token infos, such as anonymous, user name, Kerberos, or X.509 certificate.
other
User identity with overriding token infos.

Return Value

Returns the new, modified user identity.
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