NonQueryResult 類別
Represents the results from a call to the ExecuteNonQuery method.
繼承階層
System. . :: . .Object
Microsoft.SqlServer.Management.MultiServerConnection. . :: . .ResultInfo
Microsoft.SqlServer.Management.MultiServerConnection..::..NonQueryResult
命名空間: Microsoft.SqlServer.Management.MultiServerConnection
組件: Microsoft.SqlServer.Management.MultiServerConnection (在 Microsoft.SqlServer.Management.MultiServerConnection.dll 中)
語法
'宣告
Public NotInheritable Class NonQueryResult _
Inherits ResultInfo
'用途
Dim instance As NonQueryResult
public sealed class NonQueryResult : ResultInfo
public ref class NonQueryResult sealed : public ResultInfo
[<SealedAttribute>]
type NonQueryResult =
class
inherit ResultInfo
end
public final class NonQueryResult extends ResultInfo
NonQueryResult 型別公開下列成員。
屬性
名稱 | 說明 | |
---|---|---|
BatchStartingLine | Gets the starting line of the batch in the editor. (繼承自 ResultInfo。) | |
BatchText | Gets the text of the Transact-SQL batch that was executed. (繼承自 ResultInfo。) | |
CompletedSuccessfully | Gets True if execution was successful, False if there was an exception. (繼承自 ResultInfo。) | |
ConnectionInfo | Gets the connection info of the connection producing the result. (繼承自 ResultInfo。) | |
Exception | Gets or sets the exception that was thrown while executing the Transact-SQL. (繼承自 ResultInfo。) | |
ExecutionTime | Gets or sets the amount of client wall-time it took to get the result back from the server. (繼承自 ResultInfo。) | |
LoginName | Gets the name of the login executing the batch. (繼承自 ResultInfo。) | |
RowsAffected | Gets or sets the number of rows that are affected by the ExecuteNonQuery method. | |
ServerDisplayName | Gets the display name of the server where the batch was executed. (繼承自 ResultInfo。) | |
ServerName | Gets the name of the server where the batch was executed. (繼承自 ResultInfo。) | |
StartTime | Gets or sets the time when the batch was submitted. (繼承自 ResultInfo。) |
上層
方法
名稱 | 說明 | |
---|---|---|
Equals | (繼承自 Object。) | |
Finalize | (繼承自 Object。) | |
GetHashCode | (繼承自 Object。) | |
GetType | (繼承自 Object。) | |
MemberwiseClone | (繼承自 Object。) | |
ToString | Gets the string representation of the current object. (覆寫 Object. . :: . .ToString() () () ()。) |
上層
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。