다음을 통해 공유


IVsDataAsyncCommand.PrepareAsync 메서드

를 비동기식으로 클래스에 의해 구현 되는 경우 데이터 원본에 대해 실행 되도록 지정 된 명령을 준비. 다양 한 매개 변수를 여러 번 다음 명령을 실행할 수 있습니다.

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

구문

‘선언
Sub PrepareAsync ( _
    command As String, _
    commandType As DataCommandType, _
    parameters As IVsDataParameter(), _
    commandTimeout As Integer, _
    userState As Object _
)
void PrepareAsync(
    string command,
    DataCommandType commandType,
    IVsDataParameter[] parameters,
    int commandTimeout,
    Object userState
)
void PrepareAsync(
    String^ command, 
    DataCommandType commandType, 
    array<IVsDataParameter^>^ parameters, 
    int commandTimeout, 
    Object^ userState
)
abstract PrepareAsync : 
        command:string * 
        commandType:DataCommandType * 
        parameters:IVsDataParameter[] * 
        commandTimeout:int * 
        userState:Object -> unit 
function PrepareAsync(
    command : String, 
    commandType : DataCommandType, 
    parameters : IVsDataParameter[], 
    commandTimeout : int, 
    userState : Object
)

매개 변수

  • commandTimeout
    형식: System.Int32
    시간 앞의 명령 시간 초과 (초)입니다.

.NET Framework 보안

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

참고 항목

참조

IVsDataAsyncCommand 인터페이스

Microsoft.VisualStudio.Data.Services.SupportEntities 네임스페이스