[#BloombergLP-balm-PublicationScheduler-cancelCategorySchedule-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/PublicationScheduler.adoc[PublicationScheduler]::cancelCategorySchedule :relfileprefix: ../../../ :mrdocs: `cancelCategorySchedule` overloads == Synopses Declared in `<balm_publicationscheduler.h>` Cancel the periodic publication of the specified `category`. Return 0 on success, and a non‐zero value if the `category` is not scheduled for publication. Any scheduled publication of `category` is either canceled or completed before this method returns. The behavior is undefined unless `category` is a valid address supplied by the `balm::MetricRegistry` owned by `metricsManager`. Note that if a default publication schedule has been set (using `setDefaultSchedule`), then `category` will continue to be published as part of that scheduled default publication; to exclude a category from any publication, clients can disable the category using the `MetricsManager` object supplied at construction. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balm/PublicationScheduler/cancelCategorySchedule-0f.adoc[cancelCategorySchedule](xref:BloombergLP/balm/Category.adoc[Category] const* category); ---- [.small]#xref:BloombergLP/balm/PublicationScheduler/cancelCategorySchedule-0f.adoc[_» more..._]# Cancel the periodic publication of the specified null‐terminated string `category`. Return 0 on success, and a non‐zero value if the `category` is not scheduled for publication. Any scheduled publication of `category` is either canceled or completed before this method returns. Note that if a default publication schedule has been set (using `setDefaultSchedule`), then `category` will continue to be published as part of that scheduled default publication; to exclude a category from any publication, clients can disable the category using the `MetricsManager` object supplied at construction. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/balm/PublicationScheduler/cancelCategorySchedule-01.adoc[cancelCategorySchedule](char const* category); ---- [.small]#xref:BloombergLP/balm/PublicationScheduler/cancelCategorySchedule-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#