SPDiagnosticsServiceBase.ProvideAreas Method
Returns a collection of the event and trace logging categories used with this service.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected MustOverride Function ProvideAreas As IEnumerable(Of SPDiagnosticsArea)
'Usage
Dim returnValue As IEnumerable(Of SPDiagnosticsArea)
returnValue = Me.ProvideAreas()
protected abstract IEnumerable<SPDiagnosticsArea> ProvideAreas()
Return Value
Type: System.Collections.Generic.IEnumerable<SPDiagnosticsArea>
An enumerable collection of SPDiagnosticsCategory objects.
Remarks
You must implement this method in your concrete subclass. For more information, see the example implementation in the overview for the SPDiagnosticsServiceBase class.
See Also
Reference
SPDiagnosticsServiceBase Class