AddEntity Method

AddEntity 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.

Adds a copy of an entity object to a DACL object's entity collection.

Applies To

DACL Object

Syntax

[JScript] objResult  objDACL.AddEntity(objEntity);

Parameters

  • objEntity
    An entity object to add to the DACL object.

Return Value

An object that returns error codes and descriptions.

Example

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

var objResult = objDacl.AddEntity(e); if( 1 == objResult.number) {

// 0 means user was added, no errors // 1 means no error, but the user was not added – might be a duplicate }

See Also

AddEmptySecurityEntity Method

AddSecurityEntity Method

AddSimpleSecurityEntity 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.