다음을 통해 공유


DataCommand.Prepare 메서드 (String, DataCommandType)

실행할 수 있습니다; 데이터 원본에 지정된 된 준비 다음 명령은 다양 한 매개 변수를 사용 하 여 여러 번 실행할 수 있습니다.

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

구문

‘선언
Public Function Prepare ( _
    command As String, _
    commandType As DataCommandType _
) As String
public string Prepare(
    string command,
    DataCommandType commandType
)
public:
virtual String^ Prepare(
    String^ command, 
    DataCommandType commandType
) sealed
abstract Prepare : 
        command:string * 
        commandType:DataCommandType -> string  
override Prepare : 
        command:string * 
        commandType:DataCommandType -> string
public final function Prepare(
    command : String, 
    commandType : DataCommandType
) : String

매개 변수

  • command
    형식: String

    특정 데이터 원본에 실행할 명령입니다.

반환 값

형식: String
나중에 전달할 수 있는 준비 된 명령 식별자는 Execute 또는 ExecuteWithoutResults 명령 형식을 사용 하 여 메서드 Prepared.

구현

IVsDataCommand.Prepare(String, DataCommandType)

예외

예외 조건
ArgumentNullException

command 매개 변수가 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

설명

다른 예외가 발생 하는 공급자를 지정 하는 이유를 준비 하지 못했음을 나타냅니다.

.NET Framework 보안

참고 항목

참조

DataCommand 클래스

Prepare 오버로드

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

DataCommand