Struct.valueIndex 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.
Overloads
valueIndex(Int32) |
Gets or sets the value of the item at a specified position in a struct. |
valueIndex(Int32, Object) |
valueIndex(Int32)
Gets or sets the value of the item at a specified position in a struct.
public:
virtual System::Object ^ valueIndex(int _index);
public virtual object valueIndex (int _index);
abstract member valueIndex : int -> obj
override this.valueIndex : int -> obj
Public Overridable Function valueIndex (_index As Integer) As Object
Parameters
- _index
- Int32
The value to assign to the item at the position specified by index; optional.
Returns
The value of the item at the position specified by index.
Remarks
An exception is raised if there is no item at the position specified by index. The position of an item in a struct can be retrieved by using the Struct.index method.
Applies to
valueIndex(Int32, Object)
public:
virtual System::Object ^ valueIndex(int _index, System::Object ^ _value);
public virtual object valueIndex (int _index, object _value);
abstract member valueIndex : int * obj -> obj
override this.valueIndex : int * obj -> obj
Public Overridable Function valueIndex (_index As Integer, _value As Object) As Object
Parameters
- _index
- Int32
- _value
- Object
The value to assign to the item at the position specified by index; optional.