共用方式為


TargetServer.EnlistDate 屬性

Gets the date and time at which an instance of Microsoft SQL Server was enlisted as a member of a multiserver administration group.

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

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property EnlistDate As DateTime 
    Get
'用途
Dim instance As TargetServer 
Dim value As DateTime 

value = instance.EnlistDate
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public DateTime EnlistDate { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property DateTime EnlistDate {
    DateTime get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member EnlistDate : DateTime
function get EnlistDate () : DateTime

屬性值

型別:System.DateTime
A DateTime value that specifies the date and time when the instance of SQL Server was enlisted as a member of a multiserver administration group.

範例

使用 SQL Server Agent 排程自動管理工作

請參閱

參考

TargetServer 類別

Microsoft.SqlServer.Management.Smo.Agent 命名空間

其他資源

自動化管理工作 (SQL Server Agent)

sp_help_targetserver (Transact-SQL)