Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / CustomSampledMetric Class / OnSampleCollectionCreate Method

In This Topic
    OnSampleCollectionCreate Method (CustomSampledMetric)
    In This Topic
    Invoked by the base class to allow inheritors to provide derived implementations Invoked by the base class to allow inheritors to provide derived implementations
    Syntax
    'Declaration
     
    
    Protected Overrides NotOverridable Function OnSampleCollectionCreate() As MetricSampleCollection
    protected override MetricSampleCollection OnSampleCollectionCreate()

    Return Value

    The MetricSampleCollection-compatible object.The MetricSampleCollection-compatible object.
    Remarks
    If you wish to provide a derived class for metric sample collection in your derived metric, use this method to create and return your derived object. This is used during object construction, so implementations should treat it as a static method.If you wish to provide a derived class for metric sample collection in your derived metric, use this method to create and return your derived object. This is used during object construction, so implementations should treat it as a static method.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also