Share via


EnterpriseTeamMember Method

Returns whether the specified assignment or resource belongs to the project.

Assignment object: True if the assignment belongs to the specified project or False if the assignment does not belong to the specified project.

Resource object: True if the resource is a member of the specified project's team or False if the resource is not a member of the specified project's team.

Syntax

expression**.EnterpriseTeamMember(Project)**

*expression   *     Required. An expression that returns an Assignment or a Resource object.

Project    Required Object. The Project object against which *expression   * is checked. For example, ActiveProject.

Remarks

This method is available only in Microsoft Office Project Professional   2003.

The EnterpriseTeamMember method returns False for summary resource assignments, because the assignment or resource is from another project.

The EnterpriseTeamMember method returns a trappable error (error code 1004) if the active view is not a Resource or Assignment view.

Applies to | Assignment Object, Assignments Collection Object | Resource Object, Resources Collection Object