Skip to content

Latest commit

 

History

History
52 lines (29 loc) · 1.4 KB

Project.Project.GetDisplayNameFromObjectMatchingID.md

File metadata and controls

52 lines (29 loc) · 1.4 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Project.GetDisplayNameFromObjectMatchingID method (Project)
project-server
Project.Project.GetDisplayNameFromObjectMatchingID
5e535f7b-fbd9-2989-57ed-583f491a448b
06/08/2017
medium

Project.GetDisplayNameFromObjectMatchingID method (Project)

Returns the display name of an object.

Syntax

expression. GetDisplayNameFromObjectMatchingID( _ObjectType_, _MatchingID_ )

expression A variable that represents a Project object.

Parameters

Name Required/Optional Data type Description
ObjectType Required Long The type of object. Can be one of the PjOrganizer constants.
MatchingID Required String String specifying the matching name of the object.

Return value

String

Remarks

Use the GetDisplayNameFromObjectMatchingID method to get the display name in a multilanguage environment that uses Object Matching Identifier (OMID) fields. For more information, see the UseOMIDs property.

Example

The following example gets the display name of View object that has the Matching ID "My Gantt Chart".

MsgBox(ActiveProject.GetDisplayNameFromObjectMatchingID(pjView, "My Gantt Chart"))

[!includeSupport and feedback]