Edit

Share via


CubeField.AddMemberPropertyField(String, Object) Method

Definition

Adds a member property field to the display for the cube field.

public void AddMemberPropertyField (string Property, object PropertyOrder);
Public Sub AddMemberPropertyField (Property As String, Optional PropertyOrder As Object)

Parameters

Property
String

Required String. The unique name of the member property. For balanced hierarchies, a unique name can be created by appending the "quoted" member property name to the unique name of the level the member property is associated with. For unbalanced hierarchies, a unique name can be created by appending the "quoted" member property name to the unique name of the hierarchy.

PropertyOrder
Object

Optional Object. Sets the PropertyOrder property value for a CubeField object. The actual position in the collection will be immediately before the PivotTable field that currently has the same PropertyOrder value that is given in the argument. If no field has the given property order value, the range of acceptable values is from 1 to the number of member properties already showing for the hierarchy plus one. This argument is one-based. If omitted, the property goes to the end of the list.

Remarks

The property field specified will not be viewable if the PivotTable view has no fields.

To delete member properties, use the Delete() method to delete the PivotField object from the PivotFields collection.

Applies to