Category Property (IMessageSendNames Interface)



Category is a read-only property of the IMessageSendNames interface that returns the message parameter name used in MessageLog2.SendLogMessageto indicate a particular category.


A category is an optional user-provided message property that allows arbitrary grouping.




The object placeholder is an object expression that evaluates to a IMessageSendNames  interface.


The IMessageSendNames interface can be obtained directly from the MessageLog2.MessageSendNames property or by using QueryInterface (assignment, in VB, casting in .Net) on a MessageLog or MessageLog2 object.

When adding to the NamedValues collection, the IMessageSendNames interface acts with Intellisense to show the available parameter options and ensures only names that are supported are used.

Enabling Operational Intelligence