다음을 통해 공유


DataCommand.DeriveParameters 메서드 (String, DataCommandType, Int32)

지정 된 명령에 지정할 수 있는 매개 변수를 파생 됩니다.

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

구문

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

매개 변수

  • command
    형식: System.String
    데이터 원본에 특정 매개 변수를 파생할 명령입니다.
  • commandTimeout
    형식: System.Int32
    매개 변수 파생을 취소 하 고 호출자에 반환 하기 전에 클라이언트가 차단 초 단위로 시간 길이입니다.값 0은 제한 시간이 없음을 나타냅니다. 값-1의 기본을 공급자를 나타냅니다.

반환 값

형식: array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]
IVsDataParameter 개체로 이루어진 배열입니다.매개 변수를 명령에서 파생 된 각 개체를 나타냅니다.

구현

IVsDataCommand.DeriveParameters(String, DataCommandType, Int32)

예외

예외 조건
ArgumentNullException

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

ArgumentOutOfRangeException

commandTimeout 매개 변수-1 보다 작은입니다.

설명

파생 된 매개 변수 개체의 인스턴스를 검색 한 후 클라이언트를 소유 하 고 필요에 따라 해당 값을 수정할 수 있습니다.클라이언트는 이러한 값을 함께 설정는 명령 유형 다음 전달 합니다 Text 와 적절 한 시간 제한 값에는 Execute 또는[M:Microsoft.VisualStudio.Data.Framework.DataCommand.ExecuteWithoutResults(System.String,T:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType,Microsoft.VisualStudio.Data.Framework.DataParameter[],System.Int32)]

다음 중 하나를 호출 합니다.

[!참고]

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

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

DataCommand 클래스

DeriveParameters 오버로드

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

CreateParameter