SPDiagnosticsCondition 构造函数 (String, String, SPDiagnosticsConditionField, UInt32)
基于指定的参数值的SPDiagnosticsCondition类的新实例进行初始化。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub New ( _
name As String, _
pattern As String, _
field As SPDiagnosticsConditionField, _
expiration As UInteger _
)
用法
Dim name As String
Dim pattern As String
Dim field As SPDiagnosticsConditionField
Dim expiration As UInteger
Dim instance As New SPDiagnosticsCondition(name, pattern, _
field, expiration)
public SPDiagnosticsCondition(
string name,
string pattern,
SPDiagnosticsConditionField field,
uint expiration
)
参数
name
类型:System.String匹配的字段的名称。
pattern
类型:System.String期待字段中的值。
field
类型:Microsoft.SharePoint.Administration.SPDiagnosticsConditionField要匹配的字段。
expiration
类型:System.UInt32条件过期之前的分钟数。