TraceReader.GetChars 메서드

정의

버퍼 오프셋에서 시작하여 지정한 열 위치에서 문자 배열 값을 가져옵니다.

오버로드

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

지정한 열 위치에 있는 레코드에서 문자 배열 값을 가져옵니다.

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

지정한 열 위치에 있는 레코드에서 문자 배열 값을 가져옵니다.

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

지정한 열 위치에 있는 레코드에서 문자 배열 값을 가져옵니다.

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

매개 변수

ordinal
Int32

문자 배열 값을 검색할 열 위치를 지정하는 Int32 값입니다.

buffer
Char[]

문자 배열을 읽을 버퍼를 지정하는 System.UInt8 배열입니다.

length
Int32

읽을 문자 수를 지정하는 Int32 값입니다.

bufferoffset
Int32

읽기 작업을 시작할 인덱스를 지정하는 Int32 값입니다.

fieldoffset
Int32

읽기 작업을 시작할 레코드 내의 인덱스 위치를 지정하는 Int32 값입니다.

반환

배열에 반환된 문자 수를 지정하는 int32 값입니다.

예제

Readme_Tracer

적용 대상

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

지정한 열 위치에 있는 레코드에서 문자 배열 값을 가져옵니다.

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

매개 변수

ordinal
Int32

문자 배열 값을 검색할 열 위치를 지정하는 Int32 값입니다.

fieldoffset
Int64

읽기 작업을 시작할 레코드 내의 인덱스 위치를 지정하는 Int32 값입니다.

buffer
Char[]

문자 배열을 읽을 버퍼를 지정하는 Char 배열입니다.

bufferoffset
Int32

읽기 작업을 시작할 인덱스를 지정하는 Int32 값입니다.

length
Int32

읽을 문자 수를 지정하는 Int32 값입니다.

반환

배열에서 반환된 문자 수를 지정하는 Int64 값입니다.

구현

예제

Readme_Tracer

적용 대상