Share via


IDiagnosticsLevel.Name property

NOTE: This API is now obsolete.

Gets the name of the trace log category.

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

Syntax

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

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

Property value

Type: System.String
Returns a String that represents the name 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