Bagikan melalui


JobServer.Name Property

Gets the name of the SQL Server Agent service.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)> _
Public ReadOnly Property Name As String
    Get
'Usage
Dim instance As JobServer
Dim value As String

value = instance.Name
[SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)]
public string Name { get; }
[SfcPropertyAttribute(SfcPropertyFlags::ReadOnlyAfterCreation)]
public:
property String^ Name {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.ReadOnlyAfterCreation)>]
member Name : string
function get Name () : String

Property Value

Type: System.String
A String value that specifies the name of the SQL Server Agent service.