This topic has not yet been rated - Rate this topic

RemoveByDisplayName Method

Exchange Server 2003

Removes an entity object from a DACL object by using a display name to find the entity.

Applies To

Syntax

[JScript]
objResult  objDACL.RemoveByDisplayName(strDisplayName);

Parameters

strDisplayName
A string value of the display name for a security principal such "Jane Clayton."

Return Value

An object that returns error codes and descriptions.

Remarks

This method is not the most effective removal method because only the first matched entity would be removed if more than one entity had the same display name.

Example

var objErr = objDacl.RemoveByDisplayName("Jane Clayton");
if(FAILED(objErr.number)){
    //there was an error removing that user, print objErr.description
}

See Also

RemoveByIndex Method

RemovebyNT4Name Method

RemovebySID Method

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.