Returns a boolean value indicating whether the user is a member of an application different from the current application

Namespace:  Novalys.VisualGuard.Security.Membership
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public bool IsMemberOfAnotherApplication { get; }
Visual Basic (Declaration)
Public ReadOnly Property IsMemberOfAnotherApplication As Boolean

Return Value

true when the user is a member of another application or is member of a shared role. False otherwise.

Remarks

A user is a member of an application when this user is a member of a role of another application or a member of a shared role.

You can use the property ApplicationId to determine the application for which the VGMembershipUser was created.

Examples

The following code show how to test if a user is a member of an application different from the current application:
CopyVB.NET
If user.IsMemberOfAnotherApplication Then
    MessageBox.Show(string.Format("'{0}' is a member of another application", user.UserName)
End If
CopyC#
if (user.IsMemberOfAnotherApplication)
{
    MessageBox.Show(string.Format("'{0}' is a member of another application", user.UserName);
}

See Also