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

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