Set the value of the key index.


Namespace: NetricsServerInterface
Assembly: NetricsServerInterface (in NetricsServerInterface.dll)

Syntax

Visual Basic (Declaration)
Public Sub setKeyIndex( _ 
   ByVal keyIndex As Integer _ 
)
C#
public void setKeyIndex(
   int keyIndex
)
C++
public:
 void setKeyIndex(
   int keyIndex
) sealed 
J#
public void setKeyIndex(
   int keyIndex
)
JScript
public  function setKeyIndex(
   keyIndex : int
)

Exceptions

Exception TypeCondition
InvalidOperationExceptionthrown if key is already specified by name

Remarks

This sets the index (zero based) of the field that holds the record key value. This field is used as the record key and is NOT loaded as a data field. Use -1 to indicate that no key index is specified.

See Also