DataCommand.DeriveParameters 方法 (String)
取得可以針對指定的命令中指定的參數。
命名空間: Microsoft.VisualStudio.Data.Framework
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Function DeriveParameters ( _
command As String _
) As IVsDataParameter()
public IVsDataParameter[] DeriveParameters(
string command
)
public:
virtual array<IVsDataParameter^>^ DeriveParameters(
String^ command
) sealed
abstract DeriveParameters :
command:string -> IVsDataParameter[]
override DeriveParameters :
command:string -> IVsDataParameter[]
public final function DeriveParameters(
command : String
) : IVsDataParameter[]
參數
command
類型:String的命令衍生參數特有的資料來源。
傳回值
類型:array<Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataParameter[]
IVsDataParameter 物件的陣列。每個物件表示來自命令接收的參數。
實作
IVsDataCommand.DeriveParameters(String)
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | command 參數為 nullnull 參考 (即 Visual Basic 中的 Nothing)。 |
備註
在衍生自的參數物件的執行個體擷取之後,用戶端擁有它們可以修改其值視需要。 用戶端與命令型別設定為 Text 和一個適當的逾時值。會將這些值傳遞給 Execute 或 ExecuteWithoutResults 方法。
![]() |
---|
發生表示參數衍生的其他例外狀況為一個提供者指定的原因而失敗。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。