LoggerGetEventSamplingTimes


Function

Get the sampling storage count for Specified sampling count stored event.

Function

Ret = LoggerGetEventSamplingTimes ( AppId , SamplingData )

Parameters

AppId [ VB.NET: Short ] [ C++: short ] [ C#: short ] 

Specify Application ID retrieved by LoggerOpenApplication.

SamplingData [ VB.NET: UInteger ] [ C++: unsigned long * ] [ C#: out uint ]

Specify the address for storing the sampling storage count.

Return Value

Ret [ VB.NET: Integer ] [ C++: long ] [ C#: int ]

Definition

Return code

[Dec]

Description

LOGGER_ERR_SUCCESS

0

Normal completed

LOGGER_ERR_INVALID_ID

10010

Invalid AppId was specified.

LOGGER_ERR_SAMPLINGDATA_TIME

20045

Pointer for sampling count of data to be acquired is invalid.

The others (See also: Error Code List)

Initial Value

Nothing in particular.

Remarks

Get the sampling storage count for Specified sampling count stored event.

You can get the current sampling storage count by using the LoggerGetStoredSamplingCount function.

The value can be different from the second argument (SamplingTimes) of the LoggerSetSamplingSetting function.
Typically, the SamplingData value is smaller than the SampingTimes value.

Example

Specified sampling count Acquires the sampling storage count for generating a storage event.

VB.NET

Dim Ret As Integer
Dim SamplingData As UInteger

Ret = LoggerGetEventSamplingTimes(AppId, SamplingData)

 

C++

long Ret;
unsigned long SamplingData;

Ret = LoggerGetEventSamplingTimes(AppId, &SamplingData);

 

C#

int Ret;
uint SamplingData;

Ret = logger.GetEventSamplingTimes(AppId, out SamplingData);

 

See Also

LoggerSetEventSamplingTimes LoggerGetStoredSamplingCount LoggerGetSamplingSetting