Table of Contents

Class IdentityExtensions

Namespace
System.Security.Principal
Assembly
Cratis.Applications.dll

Extension methods for IIdentity.

public static class IdentityExtensions
Inheritance
IdentityExtensions
Inherited Members

Methods

GetUserIdAsGuid(IIdentity)

Get the user id as a Guid from the IIdentity.

public static Guid GetUserIdAsGuid(this IIdentity identity)

Parameters

identity IIdentity

IIdentity to get from.

Returns

Guid

The Guid.

Remarks

If there is no user id, Empty will be returned.