Struct.index(String) 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.
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.