Share via


SearchForObjectByMask Method

Topic Last Modified: 2006-06-13

Returns an entity object found by searching for a specified masks.

Applies To

DACL Object

Syntax


objEntity  objDACL.SearchForObjectByMask(masks);

Parameters

  • masks
    An array of six hexadecimal values that represent the entity s permissions.

Return Value

An entity object.

Remarks

If there is more than one entity in the DACL with the same set of masks, this method only returns one object of the first matched set.

This method uses the HasMask Method for searching.

Example

var objEntity = objDacl.SearchForObjectByMask([0x1, 0x2, 0x3, 0x4, 0x5, 0x6]);
if(null == objEntity){
    //no one had this mask
}