Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeProjectDependency

Aliases: ProjectDependency
Module
PSWriteOffice
Aliases
ProjectDependency
Inputs
OfficeIMO.Project.ProjectDocument
Outputs
OfficeIMO.Project.ProjectDependency

Adds a finish-to-start relationship between two tasks.

Syntax

Add-OfficeProjectDependency
[-Document <ProjectDocument>]
[-LagDays <Decimal>]
[-PassThru]
[-Predecessor] <OfficeProjectTaskSelector>
[-Successor] <OfficeProjectTaskSelector>
[-Type <FinishToFinish|FinishToStart|StartToFinish|StartToStart>]
[<CommonParameters>]
#
Parameter set: Document

Examples

Adds a finish-to-start relationship between two tasks.

$project | Add-OfficeProjectDependency -Predecessor 1 -Successor 2

Parameters

-Document ProjectDocument optionalpipeline: True (ByValue)
Project to inspect or change.
-LagDays Decimal optional
Working-day delay; negative values represent lead time.
-PassThru SwitchParameter optional
Return the created or changed object.
-Predecessor OfficeProjectTaskSelector requiredposition: 0
Predecessor task UID.
-Successor OfficeProjectTaskSelector requiredposition: 1
Successor task UID.
-Type ProjectDependencyType optional
Dependency relationship.
Possible values: FinishToFinish, FinishToStart, StartToFinish, StartToStart

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.