Share via


HasMaskOfEntity Method (Entity Object)

Topic Last Modified: 2006-06-13

Determines if an entity has the same mask as another entity.

Applies To

Entity Object

Syntax


objResult  objEntity.HasMaskOfEntity(objEntity2);

Parameters

  • objEntity2
    Another entity object used as a comparison.

Return Value

An object that returns error codes and descriptions.

Example

var e = objDacl.SearchForObjectByNT4Name("MyDomain\User1");

// Returns the predefined DACL with the MAPI roles
var objMapiRoles = DaclLegacyRoles();   
var e2 = objMapiRoles.SearchForObjectByNT4Name("Owner");
if(e.HasMaskOfEntity(e2)) {
    
// User has that MAPI role
}