AdoDotNetConnectionSupport.GetCommand 메서드
생성 된 DbCommand 개체에서 지정 된 명령 문자열.
네임스페이스: Microsoft.VisualStudio.Data.Framework.AdoDotNet
어셈블리: Microsoft.VisualStudio.Data.Framework(Microsoft.VisualStudio.Data.Framework.dll)
구문
‘선언
Protected Overridable Function GetCommand ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer _
) As DbCommand
protected virtual DbCommand GetCommand(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout
)
protected:
virtual DbCommand^ GetCommand(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout
)
abstract GetCommand :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> DbCommand
override GetCommand :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int -> DbCommand
protected function GetCommand(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int
) : DbCommand
매개 변수
command
형식: String특정 데이터 원본에 실행할 명령입니다.
commandType
형식: Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType형식 지정 된 명령의 내용을 해석 하는 방법을 지정 하는 command 매개 변수입니다.
parameters
형식: array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]배열 IVsDataParameter 명령은 지정 된 형식에 대 한 개체입니다.
commandTimeout
형식: Int32길이 (초) 스키마 파생을 취소 하 고 호출자에 게 반환 하기 전에 클라이언트가 차단입니다. 값이 0 이면 제한이 있습니다. 값이-1 기본을 공급자를 나타냅니다.
반환 값
형식: DbCommand
A DbCommand 개체 인스턴스입니다.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.
참고 항목
참조
AdoDotNetConnectionSupport 클래스