DataCommand.ExecuteWithoutResults 메서드

선택적 매개 변수와 함께 명령을 실행 하지만 대신 호출의 결과 나타내는 정수를 반환 하는 결과 요청 하지 않습니다.

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

구문

‘선언
Public Overridable Function ExecuteWithoutResults ( _
    command As String, _
    commandType As Integer, _
    parameters As DataParameter(), _
    commandTimeout As Integer _
) As Integer
public virtual int ExecuteWithoutResults(
    string command,
    int commandType,
    DataParameter[] parameters,
    int commandTimeout
)
public:
virtual int ExecuteWithoutResults(
    String^ command, 
    int commandType, 
    array<DataParameter^>^ parameters, 
    int commandTimeout
)
abstract ExecuteWithoutResults : 
        command:string * 
        commandType:int * 
        parameters:DataParameter[] * 
        commandTimeout:int -> int  
override ExecuteWithoutResults : 
        command:string * 
        commandType:int * 
        parameters:DataParameter[] * 
        commandTimeout:int -> int
public function ExecuteWithoutResults(
    command : String, 
    commandType : int, 
    parameters : DataParameter[], 
    commandTimeout : int
) : int

매개 변수

  • command
    형식: String

    데이터 원본에 관련 된 명령이 실행 됩니다.

  • commandType
    형식: Int32

    명령 유형을 지정 된 명령에 대 한 내용을 해석 하는 방법을 지정 하는 command 매개 변수.

  • commandTimeout
    형식: Int32

    실행을 취소 하 고 호출자에 반환 하기 전에 클라이언트가 차단 초 단위로 시간 길이입니다. . 0 값은 무한 시간 제한을 나타냅니다. 값-1의 기본을 공급자를 나타냅니다.

반환 값

형식: Int32
DDEX 공급자 상태 특정 정수 반환 코드입니다.

예외

예외 조건
ArgumentNullException

명령 또는 Asynccommandevents는 null입니다.

ArgumentException

Commandtype의 형식이 잘못 지정합니다.

ArgumentOutOfRangeException

Commandtimeout는-1 보다 작은 경우

NotSupportedException

이 메서드는 공급자를 지원 하지 않습니다.

설명

대부분의 경우이 메서드 호출의 결과의 영향을 받은 행 수가 표시 됩니다.

및 반환 값이이 호출을 사용 하 여 매개 변수는 설정할 수 있습니다. 결과 간주 되지 않습니다.

참고

발생 하는 다른 예외 매개 변수가 파생 공급자가 지정한 이유로 실패를 나타내는.

.NET Framework 보안

참고 항목

참조

DataCommand 클래스

Microsoft.VisualStudio.Data 네임스페이스

DataCommandType