CopyUserMasks Method

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

Copies the masks of one entity in a DACL object to another entity in the same DACL object.

Applies To

DACL Object

Syntax

[JScript] objResult  objDACL.CopyUserMasks(StrName1StrName2);

Parameters

  • StrName1
    A string value of the name of the entity in the DACL object whose masks are copied. This value can either be the domain and username of a user or group, or a predefined role such as an "Author."
  • StrName2
    A string value of the name of the entity in the DACL object that receives the copied masks. This value can either be the domain and username of a user or group, or a predefined role such as an "Editor."

Return Value

An object that returns error codes and descriptions.

Example

var objErr = objDacl.CopyUserMasks("MyDomain\User1", "MYDOMAIN\\user2");

if(FAILED(objErr.number)){ //something went wrong, couldn't copy the masks }

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.