IPartitionPolicy methods

Inherits methods from IPartitionPolicyParent.

Note: The Table and HasRange properties must be set and the Fields collection must have at least one field before calling this method.
Table 1. Table Partition Maintenance IPartitionPolicy interface methods
Method syntax Description
AddDetailsFromData() Populates the policy details collection from table data.
AddDetailsFromData(pcTokenString as CHARACTER) Populates the policy details collection from table data. The name template for the policy details is specified by pcTokenString in the "${<property(1)>}...-${<property(n)>}" format where property can be PartitionPolicyName, PartitionPolicyType, Number, TableName and Values[i] (i refers to the ordinal number of the partition fields.)

For example, "${PartitionPolicyName}-${Number}-${Values[1]}"

AddDetailsFromData(pcTokenBase as CHARACTER,pcTokenSubstituteArgs as CHARACTER) Populates the policy details collection from table data. To specify the name template of the policy details, the pcTokenBase parameter sets the template property order in the "&1...-&n" format (n can take values up to 9). The pcTokenSubstituteArgs parameter specifies comma-separated property values in the order set by pcTokenBase. The property values can be PartitionPolicyName, PartitionPolicyType, Number, TableName and Values[i] (i refers to the ordinal number of the partition fields.)

For example, "&1-&2-&3","PartitionPolicyName,Number,Values[1]"