# VBuffer<T>.GetIndices Method

## Definition

The indices. For a dense representation, this array is not used, and will return the default "empty" span. For a sparse representation it is parallel to that returned from GetValues() and specifies the logical indices for the corresponding values, in increasing order, between 0 inclusive and Length exclusive, corresponding to all explicitly defined values. All values at unspecified indices should be treated as being implicitly defined with the default value of T.

public ReadOnlySpan<int> GetIndices ();
member this.GetIndices : unit -> ReadOnlySpan<int>
Public Function GetIndices () As ReadOnlySpan(Of Integer)