DataCommand.Prepare 메서드 (String)
실행 될 데이터 원본에 지정한 명령을 준비 합니다. 다양 한 매개 변수를 여러 번 다음 명령을 실행할 수 있습니다.
네임스페이스: Microsoft.VisualStudio.Data.Framework
어셈블리: Microsoft.VisualStudio.Data.Framework(Microsoft.VisualStudio.Data.Framework.dll)
구문
‘선언
Public Function Prepare ( _
command As String _
) As String
public string Prepare(
string command
)
public:
virtual String^ Prepare(
String^ command
) sealed
abstract Prepare :
command:string -> string
override Prepare :
command:string -> string
public final function Prepare(
command : String
) : String
매개 변수
- command
형식: System.String
데이터 원본에 관련 된 명령이 실행 됩니다.
반환 값
형식: System.String
나중에 전달할 수 있는 준비 된 명령 식별자는 Execute 또는 ExecuteWithoutResults 명령 형식을 사용 하 여 메서드 Prepared.
구현
IVsDataCommand.Prepare(String)
예외
예외 | 조건 |
---|---|
ArgumentNullException | command 매개 변수가 nullNull 참조(Visual Basic의 경우 Nothing)입니다. |
설명
다른 예외 발생할 준비 공급자가 지정한 이유로 실패를 나타내는.
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.