Compartir a través de


Struct.index(String) Method

Definition

Calculates the position of an item in the struct based on its name.

public:
 virtual int index(System::String ^ _fieldName);
public virtual int index (string _fieldName);
abstract member index : string -> int
override this.index : string -> int
Public Overridable Function index (_fieldName As String) As Integer

Parameters

_fieldName
String

The name of the item for which to return the position.

Returns

The position of the item.

Remarks

The items in a struct are arranged in alphabetical order according to the item names. If there is no item with the name fieldName, 0 is returned.

Applies to