Connectivity Software User's Guide and Reference
UserIdentity Property (IIdentityContext)



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.Security.Subject Namespace > IIdentityContext Interface : UserIdentity Property
Gets the user identity in this context.
Syntax
'Declaration
 
<JetBrains.Annotations.CanBeNullAttribute()>
ReadOnly Property UserIdentity As IUserIdentity
'Usage
 
Dim instance As IIdentityContext
Dim value As IUserIdentity
 
value = instance.UserIdentity
[JetBrains.Annotations.CanBeNull()]
IUserIdentity UserIdentity {get;}
[JetBrains.Annotations.CanBeNull()]
property IUserIdentity^ UserIdentity {
   IUserIdentity^ get();
}

Property Value

The value of this property can be null (Nothing in Visual Basic).

Remarks

When the UserIdentity property of an IIdentityContext is null, it means that the principal does not have an associated user identity.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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