다음을 통해 공유


AdoDotNetReader.GetBytes 메서드 (Int32, array<Byte , Int32, Int32)

지정 된 이진 데이터의 바이트 수를 검색합니다.

네임스페이스:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
어셈블리:  Microsoft.VisualStudio.Data.Framework(Microsoft.VisualStudio.Data.Framework.dll)

구문

‘선언
Public Overrides Function GetBytes ( _
    index As Integer, _
    buffer As Byte(), _
    bufferIndex As Integer, _
    length As Integer _
) As Integer
public override int GetBytes(
    int index,
    byte[] buffer,
    int bufferIndex,
    int length
)
public:
virtual int GetBytes(
    int index, 
    array<unsigned char>^ buffer, 
    int bufferIndex, 
    int length
) override
abstract GetBytes : 
        index:int * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int 
override GetBytes : 
        index:int * 
        buffer:byte[] * 
        bufferIndex:int * 
        length:int -> int 
public override function GetBytes(
    index : int, 
    buffer : byte[], 
    bufferIndex : int, 
    length : int
) : int

매개 변수

  • index
    형식: System.Int32
    현재 블록 데이터를 검색할 항목의 인덱스입니다.
  • buffer
    형식: array<System.Byte[]
    배열에 바이트 배열로 지정 된 데이터를 배치 합니다.경우 nullNull 참조(Visual Basic의 경우 Nothing),이 모든 지정 된 데이터에 맞게 배열에 필요한 크기를 반환 합니다.
  • bufferIndex
    형식: System.Int32
    인덱스의 지정 된 바이트 배열의 시작 위치는 buffer 매개 변수.
  • length
    형식: System.Int32
    지정 된 바이트 배열로 읽을 바이트 수를 buffer 매개 변수.

반환 값

형식: System.Int32
버퍼로 읽어온 바이트 수를 나타내는 숫자 값입니다.

구현

IVsDataReader.GetBytes(Int32, array<Byte[], Int32, Int32)

설명

바이트 형태의 데이터 공급자에서 데이터를 표시 하는 경우이 메서드는 기존 클라이언트 쪽 버퍼에 특정 수의 바이트 수만 읽을 수 호출할 수 있습니다.단순히 읽고 할당 된 모든 데이터의 메모리로 인해 전체 값 검색 보다 더 나은 수행 합니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

AdoDotNetReader 클래스

GetBytes 오버로드

Microsoft.VisualStudio.Data.Framework.AdoDotNet 네임스페이스