Share via


IDiagnosticsLevel.Id property

NOTE: This API is now obsolete.

Gets the ID of the trace log category.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPDiagnosticsCategory")> _
ReadOnly Property Id As String
    Get
'Usage
Dim instance As IDiagnosticsLevel
Dim value As String

value = instance.Id
[ObsoleteAttribute("Use SPDiagnosticsCategory")]
string Id { get; }

Property value

Type: System.String
A String that represents the ID of the trace log category.

Remarks

For the trace log categories defined for use by SharePoint Foundation, the ID property of a trace log category is its English language name, while the Name property is a localized name for the category. Third-party developers can elect to use these properties to implement other scenarios; however, those scenarios are not explicitly supported by SharePoint Foundation.

See also

Reference

IDiagnosticsLevel interface

IDiagnosticsLevel members

Microsoft.SharePoint.Administration namespace

Other resources

Trace Logs

Trace Log Categories

Writing to the Trace Log

Trace Log Example