Share via


TraceReader.GetChars Method

Definition

Gets a character array value from the specified column position, starting at the buffer offset.

Overloads

GetChars(Int32, Char[], Int32, Int32, Int32)

Gets a character array value from the record at the specified column position.

GetChars(Int32, Int64, Char[], Int32, Int32)

Gets a character array value from the record at the specified column position.

GetChars(Int32, Char[], Int32, Int32, Int32)

Gets a character array value from the record at the specified column position.

public:
 int GetChars(int ordinal, cli::array <char> ^ buffer, int length, int bufferoffset, int fieldoffset);
public int GetChars (int ordinal, char[] buffer, int length, int bufferoffset, int fieldoffset);
member this.GetChars : int * char[] * int * int * int -> int
Public Function GetChars (ordinal As Integer, buffer As Char(), length As Integer, bufferoffset As Integer, fieldoffset As Integer) As Integer

Parameters

ordinal
Int32

An Int32 value that specifies the column position at which to retrieve the character array value.

buffer
Char[]

A System.UInt8 array that specifies the buffer into which to read the character array.

length
Int32

An Int32 value that specifies the number of characters to read.

bufferoffset
Int32

An Int32 value that specifies the index from which to start the read operation.

fieldoffset
Int32

An Int32 value that specifies the index position within the record from which to begin the read operation.

Returns

An int32 value that specifies the number of characters returned in the array.

Examples

Readme_Tracer

Applies to

GetChars(Int32, Int64, Char[], Int32, Int32)

Gets a character array value from the record at the specified column position.

public:
 virtual long GetChars(int ordinal, long fieldoffset, cli::array <char> ^ buffer, int bufferoffset, int length);
public long GetChars (int ordinal, long fieldoffset, char[] buffer, int bufferoffset, int length);
abstract member GetChars : int * int64 * char[] * int * int -> int64
override this.GetChars : int * int64 * char[] * int * int -> int64
Public Function GetChars (ordinal As Integer, fieldoffset As Long, buffer As Char(), bufferoffset As Integer, length As Integer) As Long

Parameters

ordinal
Int32

An Int32 value that specifies the column position at which to retrieve the character array value.

fieldoffset
Int64

An Int32 value that specifies the index position within the record from which to begin the read operation.

buffer
Char[]

A Char array that specifies the buffer into which to read the character array.

bufferoffset
Int32

An Int32 value that specifies the index from which to start the read operation.

length
Int32

An Int32 value that specifies the number of characters to read.

Returns

An Int64 value that specifies the number of characters returned in the array.

Implements

Examples

Readme_Tracer

Applies to