IDTSExternalMetadataColumnCollection100.SetIndex(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
void SetIndex(int lOldIndex, int lNewIndex);
[System.Runtime.InteropServices.DispId(19)]
public void SetIndex (int lOldIndex, int lNewIndex);
[<System.Runtime.InteropServices.DispId(19)>]
abstract member SetIndex : int * int -> unit
Public Sub SetIndex (lOldIndex As Integer, lNewIndex As Integer)
Parameters
- lOldIndex
- Int32
- lNewIndex
- Int32
- Attributes
Remarks
lOldIndex
and lNewIndex
are zero-based parameters. The method moves the IDTSExternalMetadataColumn100 column located at lOldIndex
to the location in the collection specified by lNewIndex
. Any columns after lOldIndex
are shifted up in the collection until reaching lNewIndex
.
As an example, consider an external metadata column collection with the following IDs for the columns:
Col1
Col2
Col3
Col4
If SetIndex is called with lOldIndex
equal to 0 and lNewIndex
equal to 2, the modified collection has the following order:
Col2
Col3
Col1
Col4
If either lOldIndex
or lNewIndex
are outside the bounds of the collection, a DTS_E_INVALIDINDEX exception occurs.