SPPerformanceCategoryDefinition.ContainsCounter method
檢查類別中,是否存在效能計數器
Namespace: Microsoft.SharePoint.Diagnostics
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Function ContainsCounter ( _
counter As String _
) As Boolean
'用途
Dim instance As SPPerformanceCategoryDefinition
Dim counter As String
Dim returnValue As Boolean
returnValue = instance.ContainsCounter(counter)
public bool ContainsCounter(
string counter
)
參數
- counter
Type: System.String
傳回值
Type: System.Boolean
傳回 Boolean。
請參閱
參照
SPPerformanceCategoryDefinition class