Share via


AdomdDataReader.GetChars Method

Returns an array of Char objects that contain a stream of values from the specified column.

네임스페이스: Microsoft.AnalysisServices.AdomdServer
어셈블리: msmgdsrv (in msmgdsrv.dll)

구문

‘선언
Public Function GetChars ( _
    i As Integer, _
    fieldOffset As Long, _
    buffer As Char(), _
    bufferoffset As Integer, _
    length As Integer _
) As Long
public long GetChars (
    int i,
    long fieldOffset,
    char[] buffer,
    int bufferoffset,
    int length
)
public:
virtual long long GetChars (
    int i, 
    long long fieldOffset, 
    array<wchar_t>^ buffer, 
    int bufferoffset, 
    int length
) sealed
public final long GetChars (
    int i, 
    long fieldOffset, 
    char[] buffer, 
    int bufferoffset, 
    int length
)
public final function GetChars (
    i : int, 
    fieldOffset : long, 
    buffer : char[], 
    bufferoffset : int, 
    length : int
) : long

매개 변수

  • i
    The zero-based ordinal position of the column to be retrieved.
  • fieldOffset
    The zero-based index within the column from which to begin reading data.
  • buffer
    The buffer into which to read the stream of characters.
  • bufferoffset
    The zero-based index within the buffer from which to begin writing data.
  • length
    The number of characters to read from the column.

반환 값

A Long that contains the number of characters actually read from the column.

예외

예외 유형 상태
IndexOutOfRangeException

The value ofdataIndex is greater than Int32.MaxValue.

The value of bufferIndex is less than 0 or greater than the total of length and the length of buffer.

For more information about this exception, see IndexOutOfRangeException Class.

주의

The GetChars method returns the number of available characters in the field. In most cases this is the exact length of the field. However, the number returned may be less than the true length of the field if GetChars has already been used to obtain characters from the field.

If you pass a null reference (Nothing in Microsoft Visual Basic) in the buffer parameter, GetBytes returns the length of the column in characters.

No conversions are performed; therefore the data retrieved must already be a character array.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

AdomdDataReader Class
AdomdDataReader Members
Microsoft.AnalysisServices.AdomdServer Namespace