Share via


ServerEventArgs.SqlInstance Property

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

Property Value

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

Examples

Handling SMO Events

See Also

Reference

ServerEventArgs Class

Microsoft.SqlServer.Management.Smo Namespace