Visual Guard Class Library Documentation

VGMembershipUser.IsMemberOfAnotherApplication Property

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

public Boolean IsMemberOfAnotherApplication {get;}

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.

Example

The following code show how to test if a user is a member of an application different from the current application:

[Visual Basic]
If user.IsMemberOfAnotherApplication Then
    MessageBox.Show(string.Format("'{0}' is a member of another application", user.UserName)
End If
[c#]
if (user.IsMemberOfAnotherApplication)
{
    MessageBox.Show(string.Format("'{0}' is a member of another application", user.UserName);
}

See Also

VGMembershipUser Class | Novalys.VisualGuard.Security.Membership Namespace