DataCommand.ExecuteWithoutResults 方法 (String)
執行命令,但不要求結果,而是傳回表示呼叫的結果整數。
命名空間: Microsoft.VisualStudio.Data.Framework
組件: Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)
語法
'宣告
Public Function ExecuteWithoutResults ( _
command As String _
) As Integer
public int ExecuteWithoutResults(
string command
)
public:
virtual int ExecuteWithoutResults(
String^ command
) sealed
abstract ExecuteWithoutResults :
command:string -> int
override ExecuteWithoutResults :
command:string -> int
public final function ExecuteWithoutResults(
command : String
) : int
參數
- command
型別:System.String
物件是針對資料來源執行的命令。
傳回值
型別:System.Int32
DDEX 提供者特定的整數狀態碼。
實作
IVsDataCommand.ExecuteWithoutResults(String)
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentNullException | command 參數為 nullNull 參照 (即 Visual Basic 中的 Nothing)。 |
備註
在許多情況下,呼叫的結果傳遞至這個方法會指出受影響的資料列數目。
![]() |
---|
發生的其他例外狀況表示執行為提供者指定的原因而失敗。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。