Класс 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() () () ().)

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.