Share via


PSPerfCountersMgr.UpdateCounterByValue Method

Definition

Overloads

UpdateCounterByValue(Guid, Int32, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterId' in Counter Set 'counterSetId' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

UpdateCounterByValue(Guid, String, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterName' in Counter Set 'counterSetId' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

UpdateCounterByValue(String, Int32, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterId' in Counter Set 'counterSetName' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

UpdateCounterByValue(String, String, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterName' in Counter Set 'counterSetName' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

UpdateCounterByValue(Guid, Int32, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterId' in Counter Set 'counterSetId' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

public bool UpdateCounterByValue (Guid counterSetId, int counterId, long stepAmount = 1, bool isNumerator = true);
member this.UpdateCounterByValue : Guid * int * int64 * bool -> bool
Public Function UpdateCounterByValue (counterSetId As Guid, counterId As Integer, Optional stepAmount As Long = 1, Optional isNumerator As Boolean = true) As Boolean

Parameters

counterSetId
Guid
counterId
Int32
stepAmount
Int64
isNumerator
Boolean

Returns

Applies to

UpdateCounterByValue(Guid, String, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterName' in Counter Set 'counterSetId' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

public bool UpdateCounterByValue (Guid counterSetId, string counterName, long stepAmount = 1, bool isNumerator = true);
member this.UpdateCounterByValue : Guid * string * int64 * bool -> bool
Public Function UpdateCounterByValue (counterSetId As Guid, counterName As String, Optional stepAmount As Long = 1, Optional isNumerator As Boolean = true) As Boolean

Parameters

counterSetId
Guid
counterName
String
stepAmount
Int64
isNumerator
Boolean

Returns

Applies to

UpdateCounterByValue(String, Int32, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterId' in Counter Set 'counterSetName' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

bool UpdateCounterByValue(std::wstring const & counterSetName, int counterId, long stepAmount = 1, bool isNumerator = true);
public bool UpdateCounterByValue (string counterSetName, int counterId, long stepAmount = 1, bool isNumerator = true);
member this.UpdateCounterByValue : string * int * int64 * bool -> bool
Public Function UpdateCounterByValue (counterSetName As String, counterId As Integer, Optional stepAmount As Long = 1, Optional isNumerator As Boolean = true) As Boolean

Parameters

counterSetName
String
counterId
Int32
stepAmount
Int64
isNumerator
Boolean

Returns

Applies to

UpdateCounterByValue(String, String, Int64, Boolean)

If IsNumerator is true, then updates the numerator component of target counter 'counterName' in Counter Set 'counterSetName' by 'stepAmount'. Otherwise, updates the denominator component by 'stepAmount'.

bool UpdateCounterByValue(std::wstring const & counterSetName, std::wstring const & counterName, long stepAmount = 1, bool isNumerator = true);
public bool UpdateCounterByValue (string counterSetName, string counterName, long stepAmount = 1, bool isNumerator = true);
member this.UpdateCounterByValue : string * string * int64 * bool -> bool
Public Function UpdateCounterByValue (counterSetName As String, counterName As String, Optional stepAmount As Long = 1, Optional isNumerator As Boolean = true) As Boolean

Parameters

counterSetName
String
counterName
String
stepAmount
Int64
isNumerator
Boolean

Returns

Applies to