DeleteLogs 方法 (DateTime)
Deletes job step log files that are older than the specified date.
命名空間: Microsoft.SqlServer.Management.Smo.Agent
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub DeleteLogs ( _
olderThan As DateTime _
)
'用途
Dim instance As JobStep
Dim olderThan As DateTime
instance.DeleteLogs(olderThan)
public void DeleteLogs(
DateTime olderThan
)
public:
void DeleteLogs(
DateTime olderThan
)
member DeleteLogs :
olderThan:DateTime -> unit
public function DeleteLogs(
olderThan : DateTime
)
參數
- olderThan
型別:System. . :: . .DateTime
A DateTime system object value that specifies the date. Log files that have an earlier date are deleted.