SetDeployType Method

The SetDeployType method sets the deployment strategy for Copy and Activate.

Syntax

Cube .SetDeployType(deployType

Applies To

Cube Object

Discussion

Use this method before deploying a PowerCube.

The deployType parameter allows a user to set the deployment strategy. trDeployType_NONE specifies that a PowerCube cannot be deployed.

A value of trDeployType_SWAPSINGLE specifies that if one or more of the deployment locations are unavailable, the deployment action is aborted for all specified locations.

A value of trDeployType_SWAPTOGETHER specifies that if one or more locations specified in the deployment locations (see AddDeployLocation) is not available, the PowerCube does not deploy to these locations. However, the PowerCube does not deploy to all available locations.

For all values except trDeployType_NONE, the Deployment location(s) needs to be set prior to calling DeployCube method.

If the cube is a child cube belonging to a cube group, the child cube can inherit the same deployment strategy as its parent cube. This does not apply for time-based partitioned cubes.

By default, the deployment strategy is 'Do not deploy'.

A COM exception is thrown in error situations. The message that is passed with the exception varies depending on the error situation.

Return Type

None

Parameter

Description

deployType

Required. Specifies the deployment type. This parameter uses a constant of the value list xtrDeployType

Type: Constant - xtrDeploytype

Examples

cube 
= model.Cubes.Item("National")cube.
   SetDeployType(xtrDeployType.trDeployType_SWAPSINGLE)