共用方式為


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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。