Table of contents
TOC
折叠目录
展开目录

Project.GetObjectMatchingID 方法 (项目)Project.GetObjectMatchingID Method (Project)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回某一对象的匹配标识名称。Returns the matching identification name of an object.

语法Syntax

表达式GetObjectMatchingID(* 对象类型对象名称)expression. **GetObjectMatchingID( ** ObjectType, ** ObjectName* )

表达式_一个表示项目对象的变量。_expression A variable that represents a Project object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
对象类型ObjectType必需RequiredLongLong对象的类型。可以是PjOrganizer常量之一。The type of object. Can be one of the PjOrganizer constants.
对象名称ObjectName必需RequiredStringString显示对象的名称。Display name of the object.

返回值Return Value

StringString

注解Remarks

可以使用GetObjectMatchingID方法来获取显示名称在多语言环境中使用对象匹配标识符 (OMID) 字段。有关详细信息,请参阅UseOMIDs属性。You can use the GetObjectMatchingID 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 Matching ID of a View object with the display name "My Gantt Chart".

MsgBox(ActiveProject.GetObjectMatchingID(pjView, "Gantt Chart"))
© 2018 Microsoft