Freigeben über


ServerEventArgs.SqlInstance-Eigenschaft

Gets the instance of SQL Server on which the event occurred.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public ReadOnly Property SqlInstance As String 
    Get
'Usage
Dim instance As ServerEventArgs 
Dim value As String 

value = instance.SqlInstance
public string SqlInstance { get; }
public:
property String^ SqlInstance {
    String^ get ();
}
member SqlInstance : string
function get SqlInstance () : String

Eigenschaftswert

Typ: System.String
A String value that specifies the name of the instance of SQL Server on which the event occurred.

Beispiele

Behandeln von SMO-Ereignissen

Siehe auch

Verweis

ServerEventArgs Klasse

Microsoft.SqlServer.Management.Smo-Namespace