共用方式為


SqlInstance 屬性

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public ReadOnly Property SqlInstance As String
    Get
'用途
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

屬性值

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