Share via


IsEqualMask Method

IsEqualMask Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Determines if an entity object exactly contains the specified masks.

Applies To

Entity Object

Syntax

[JScript] bool  objEntity.IsEqualMask(masks);

Parameters

  • masks
    A string value of bitmasks to compare with the entity object.

Return Value

Returns TRUE if the bitmasks of the entity object exactly match the specified masks.

Remarks

If a mask for an entity object is defined as 000101, the only specified mask that can return TRUE is 000101. The HasMask method, however, returns TRUE if it matches masks 000001, 000100 and 000101.

Example

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

var m = new Array(0x0080, 0x0080, 0x0080, 0x0080, 0x0000, 0x0000); if(e.IsEqualMask(m)) {

// User has that right }

See Also

HasMask Method

HasMaskByTemplate Method

HasMaskOfEntity Method

Send us your feedback about the Microsoft Exchange Server 2003 SDK.

Build: June 2007 (2007.618.1)

© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.