Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.39 KB

File metadata and controls

61 lines (44 loc) · 2.39 KB

Deleting a Counter


{NOTE: }


{PANEL: Delete Syntax}

{CODE Delete-definition@DocumentExtensions\Counters\Counters.cs /}

Parameter Type Description
counterName string Counter's name
{PANEL/}

{PANEL: Delete Usage}

  • Flow:

  • Open a session

  • Create an instance of CountersFor.

  • Execute CountersFor.Delete

  • Execute session.SaveChanges for the changes to take effect

  • Note:

    • A Counter you deleted will be removed only after the execution of SaveChanges().
    • Deleting a document deletes its Counters as well.
    • Delete will not generate an error if the Counter doesn't exist.

{PANEL/}

{PANEL: Code Sample}

{CODE counters_region_Delete@DocumentExtensions\Counters\Counters.cs /} {PANEL/}

Related articles

Studio Articles:
Studio Counters Management

Client-API - Session Articles:
Counters Overview
Creating and Modifying Counters
Retrieving Counter Values
Counters and other features
Counters In Clusters

Client-API - Operations Articles:
Counters Operations