SearchForObjectByDisplayName Method

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

Returns an entity object found by searching for a specified display name.

Applies To

DACL Object

Syntax

[JScript] objEntity  objDACL.SearchForObjectByDisplayName(strDisplayName);

Parameters

  • strDisplayName
    A string value of the display name for the specified trustee such as "Jane Clayton."

Return Value

A returned entity object.

Remarks

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

Example

var objEntity = objDacl.SearchForObjectByDisplayName("Jane Clayton");

if(null == objEntity){ //this user was not likely in the dacl }

See Also

SearchForObjectByMask Method

SearchForObjectByNT4Name Method

SearchForObjectBySID Method

SearchForObjectBySIDType Method

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