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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。