Share via


SPDiagnosticsCategory members

Contains the EventSeverity and TraceSeverity properties for a specific category.

The SPDiagnosticsCategory type exposes the following members.

Constructors

  Name Description
Public method SPDiagnosticsCategory(String, TraceSeverity, EventSeverity) Initializes the category name and the default throttle value for TraceSeverity and EventSeverity with the specified name, TraceSeverity and EventSeverity objects.
Public method SPDiagnosticsCategory(String, TraceSeverity, EventSeverity, UInt32, UInt32) Initializes the category name and the default throttle value for TraceSeverity and EventSeverity with the specified name, TraceSeverity object, EventSeverity object, message identifier, and category identifier.
Public method SPDiagnosticsCategory(String, String, TraceSeverity, EventSeverity, UInt32, UInt32, Boolean, Boolean) Initializes the category name and the default throttle value for TraceSeverity and EventSeverity with the specified name, localized name, TraceSeverity object, EventSeverity object, message identifier, category identifier, unique numeric identifier, a Bool that specifies whether the created object is hidden from logging, and a Bool that specifies whether the defined category is synchronized with other categories.

Top

Properties

  Name Description
Public property Area Gets the parent Area of this SPDiagnosticsCategory object.
Public property DefaultEventSeverity
Public property DefaultTraceSeverity Gets the default trace severity throttle value for this SPDiagnostics object.
Public property EventSeverity Gets or sets the currently configured verbosity of event logging.
Public property Hidden Retrieves the value indicating whether the item is hidden from the administrative user interface. (Inherited from SPDiagnosticsItem.)
Public property Id Gets the unique ID for the item. (Inherited from SPDiagnosticsItem.)
Public property LocalizedName Gets the name for the item, localized for display to the user. (Inherited from SPDiagnosticsItem.)
Public property MessageId Gets the integer value representing the index in the message table corresponding to this item. (Inherited from SPDiagnosticsItem.)
Public property Name Gets the non-localized name for the item, used when writing to the trace log, or when manipulating categories through the object model or through powershell. (Inherited from SPDiagnosticsItem.)
Public property Shadow
Public property TraceSeverity Gets or sets the currently configured verbosity of trace logging.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ResetToDefaults Resets the EventSeverity and TraceSeverity back to their default values.
Public method ToString Formats the item and outputs it as a string value. (Inherited from SPDiagnosticsItem.)

Top

Explicit interface implementations

  Name Description
Explicit interface implemetationPrivate property IDiagnosticsLevel.Id Obsolete.

Top

See also

Reference

SPDiagnosticsCategory class

Microsoft.SharePoint.Administration namespace