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)
Available in Sandboxed Solutions: No

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