ClearByTemplate Method

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

Clears from a DACL object the masks of a specified entity in a DACL template.

Applies To

DACL Object

Syntax

[JScript] objResult  objDACL.ClearByTemplate(strNameobjDACLTemplatestrNT4NameInDACLTemplate);

Parameters

  • strName
    A string value of an entity to match in the DACL template. This value can either be the domain and username of a user or group, or a predefined role such as an "Author."
  • objDACLTemplate
    A DACL object used as a template.
  • strNT4NameInDACLTemplate
    A string value of the name of an entity in the DACL template object used to compare with the DACL object being evaluated.

Return Value

An object that returns error codes and descriptions.

Remarks

This method is a wrapper for ModifyByTemplate method, with predefined action parameter as "Clear."

The following possible error messages can be returned:

  • Person not found.
  • Template entity not found.

Person not found. Template entity not found.

Example

var objLRoles = DaclLegacyRoles();

var objErr = objDacl.ClearByTemplate("MyDomain\User1", objLRoles, "Reviewer"); if(FAILED(objErr.number)){ //something went wrong }

See Also

MakeEqualToTemplate Method

ModifyByTemplate Method

SetByTemplate Method

DACL Templates

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.