SPDiagnosticsService.DaysToKeepLogs 属性
获取或设置存储日志文件的天数。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Property DaysToKeepLogs As Integer
Get
Set
用法
Dim instance As SPDiagnosticsService
Dim value As Integer
value = instance.DaysToKeepLogs
instance.DaysToKeepLogs = value
public int DaysToKeepLogs { get; set; }
属性值
类型:System.Int32
工作日的数目。