IVsDataCommand.Prepare 메서드 (String, DataCommandType, array<IVsDataParameter , Int32)
클래스에서 구현 되 면 실행할 데이터 소스에 지정 된 명령을 준비. 다양 한 매개 변수를 여러 번 다음 명령을 실행할 수 있습니다.
네임스페이스: Microsoft.VisualStudio.Data.Services.SupportEntities
어셈블리: Microsoft.VisualStudio.Data.Services(Microsoft.VisualStudio.Data.Services.dll)
구문
‘선언
Function Prepare ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer _
) As String
string Prepare(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout
)
String^ Prepare(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout
)
abstract Prepare :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> string
function Prepare(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int
) : String
매개 변수
- command
형식: System.String
데이터 원본에 관련 된 명령이 실행 됩니다.
- commandType
형식: Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType
값은 DataCommandType 의 내용을 해석 하는 방법을 지정 하는 지정 된 명령에 대 한 명령 형식을 나타내는 열거형의 command 매개 변수.
- parameters
형식: array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]
배열을 IVsDataParameter 명령 매개 변수를 나타내는 개체입니다.
- commandTimeout
형식: System.Int32
실행을 취소 하 고 호출자에 반환 하기 전에 클라이언트가 차단 초 단위로 시간 길이입니다.값 0은 제한 시간이 없음을 나타냅니다. 값-1의 기본을 공급자를 나타냅니다.
반환 값
형식: System.String
나중에 전달할 수 있는 준비 된 명령 식별자는 Execute 또는 ExecuteWithoutResults 명령 형식을 사용 하 여 메서드 Prepared.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.