다음을 통해 공유


ActiveEndDate 속성

Gets or sets the date and time when the schedule ends.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Agent
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute> _
Public Property ActiveEndDate As DateTime
    Get
    Set
‘사용 방법
Dim instance As JobSchedule
Dim value As DateTime

value = instance.ActiveEndDate

instance.ActiveEndDate = value
[SfcPropertyAttribute]
public DateTime ActiveEndDate { get; set; }
[SfcPropertyAttribute]
public:
property DateTime ActiveEndDate {
    DateTime get ();
    void set (DateTime value);
}
[<SfcPropertyAttribute>]
member ActiveEndDate : DateTime with get, set
function get ActiveEndDate () : DateTime
function set ActiveEndDate (value : DateTime)

속성 값

형식: System. . :: . .DateTime
A DateTime value that specifies the date and time when the job schedule ends.

주의

Scheduled SQL Server Agent jobs can have start and end dates. A job is run only between the start date and time and the end date and time. Alter the ActiveEndDate property to set the date when the schedule is no longer in effect.

If the ActiveEndDate property has not been set, the DateTime.MinValue is returned.