SPDiagnosticsCondition constructor (String, String, SPDiagnosticsConditionField, UInt32)
初始化指定參數的值為基礎的SPDiagnosticsCondition類別的新執行個體。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
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
Type: System.String相符的欄位名稱。
pattern
Type: System.String預期欄位的值。
field
Type: Microsoft.SharePoint.Administration.SPDiagnosticsConditionField要比對] 欄位。
expiration
Type: System.UInt32此條件會到期前的分鐘數。
請參閱
參照
SPDiagnosticsCondition members