Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

GetCategory deprecated

Hi;



I am using the GetCategory in PC SDK vers 5.15 as stated in the PC SDK application manual 5.15 (pg on EventLog domain):

EventLogCategory cat = log.GetCategory(CategoryType.Common);



but it says that GetCategory and CategoryType are already deprecated. What are the replacement for them ? Please update this info in the manual.



Rgds



Wey
FW

Comments

  • Hi,
    is deprecated but you can always use it, or you can use EventLogCategory[] cat = log.GetCategories();
    where you receive all the available EventLogMessage of the EventLog.