Get the sampling storage count for Specified sampling count stored event.
Ret = LoggerGetEventSamplingTimes ( AppId , SamplingData )
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.
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)
Nothing in particular.
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.
Specified sampling count Acquires the sampling storage count for generating a storage event.
VB.NET |
Dim Ret As Integer Ret = LoggerGetEventSamplingTimes(AppId, SamplingData)
|
C++ |
long Ret; Ret = LoggerGetEventSamplingTimes(AppId, &SamplingData);
|
C# |
int Ret; Ret = logger.GetEventSamplingTimes(AppId, out SamplingData);
|
LoggerSetEventSamplingTimes LoggerGetStoredSamplingCount LoggerGetSamplingSetting