다음을 통해 공유


IsEqualTo Method (Entity Object)

Topic Last Modified: 2006-06-13

Determines if two entity objects have the same mask.

Applies To

Entity Object

Syntax


bool  objEntity.IsEqualTo(objEntity2);

Parameters

  • objEntity2
    An entity object whose masks are used as a comparison.

Return Value

Returns TRUE if two entity objects have the same mask.

Example

var e = objDacl.SearchForObjectByNT4Name("MyDomain\User1");
var e2 = objDacl.SearchForObjectByNT4Name("MYDOMAIN\\joeweb")
if( false == e.IsEqualTo(e2) ){
   
// These two users are not the same (as expected).
}