TraceReader.GetChars 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.
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.
- 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
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.
Returns
An Int64 value that specifies the number of characters returned in the array.