Share via


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

  • expiration
    Type: System.UInt32

    Number of minutes before the condition expires.

See also

Reference

SPDiagnosticsCondition class

SPDiagnosticsCondition members

SPDiagnosticsCondition overload

Microsoft.SharePoint.Administration namespace