SPDiagnosticsCondition constructor (String, String, SPDiagnosticsConditionField, UInt32)
Initializes a new instance of the SPDiagnosticsCondition class based on the values of the specified parameters.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
pattern As String, _
field As SPDiagnosticsConditionField, _
expiration As UInteger _
)
'Usage
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
)
Parameters
name
Type: System.StringName of the matched field.
pattern
Type: System.StringExpected value for the field.
field
Type: Microsoft.SharePoint.Administration.SPDiagnosticsConditionFieldField to be matched.
expiration
Type: System.UInt32Number of minutes before the condition expires.
See also
Reference
SPDiagnosticsCondition members