IVsDataAsyncCommand.PrepareAsync 方法
當由類別實作,準備,以非同步方式,執行指定的命令執行對資料來源;這個命令可以執行多次,以變更的參數。
命名空間: Microsoft.VisualStudio.Data.Services.SupportEntities
組件: Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)
語法
'宣告
Sub PrepareAsync ( _
command As String, _
commandType As DataCommandType, _
parameters As IVsDataParameter(), _
commandTimeout As Integer, _
userState As Object _
)
void PrepareAsync(
string command,
DataCommandType commandType,
IVsDataParameter[] parameters,
int commandTimeout,
Object userState
)
void PrepareAsync(
String^ command,
DataCommandType commandType,
array<IVsDataParameter^>^ parameters,
int commandTimeout,
Object^ userState
)
abstract PrepareAsync :
command:string *
commandType:DataCommandType *
parameters:IVsDataParameter[] *
commandTimeout:int *
userState:Object -> unit
function PrepareAsync(
command : String,
commandType : DataCommandType,
parameters : IVsDataParameter[],
commandTimeout : int,
userState : Object
)
參數
command
類型:String要執行的命令。
commandType
類型:Microsoft.VisualStudio.Data.Services.SupportEntities.DataCommandType表示所表示之命令的 DataCommandType 列舉型別中的值順序型別,指定如何解譯 command 參數的內容。
parameters
類型:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]要傳遞的參數清單與命令。
commandTimeout
類型:Int32時間,以秒為單位),在目前的命令逾時。
userState
類型:Object呼叫這個方法的物件,以便在命令中的進度。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。