次の方法で共有


ExtensibilityDiagnosticEventReporter<T> Class

Definition

Represents an event that is registered with the IExtensibilityDiagnosticsService.

public abstract class ExtensibilityDiagnosticEventReporter<T> : Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticReporter<T,Microsoft.VisualStudio.Shell.Internal.ExtensibilityEventDiagnosticConfiguration>, Microsoft.VisualStudio.Shell.Internal.IExtensibilityDiagnosticEventReporter, Microsoft.VisualStudio.Shell.Internal.IExtensibilityDiagnosticReporter<Microsoft.VisualStudio.Shell.Internal.ExtensibilityEventDiagnosticConfiguration> where T : ExtensibilityDiagnosticEventContext
type ExtensibilityDiagnosticEventReporter<'T (requires 'T :> ExtensibilityDiagnosticEventContext)> = class
    inherit ExtensibilityDiagnosticReporter<'T, ExtensibilityEventDiagnosticConfiguration (requires 'T :> ExtensibilityDiagnosticEventContext)>
    interface IExtensibilityDiagnosticEventReporter
    interface IExtensibilityDiagnosticEventManager
    interface IExtensibilityDiagnosticReporter<ExtensibilityEventDiagnosticConfiguration>
Public MustInherit Class ExtensibilityDiagnosticEventReporter(Of T)
Inherits ExtensibilityDiagnosticReporter(Of T, ExtensibilityEventDiagnosticConfiguration)
Implements IExtensibilityDiagnosticEventReporter, IExtensibilityDiagnosticReporter(Of ExtensibilityEventDiagnosticConfiguration)

Type Parameters

T

The type of object that contains the properties to log as diagnostics.

Inheritance
Implements

Constructors

ExtensibilityDiagnosticEventReporter<T>(ExtensibilityDiagnosticsLoggerConfiguration)

Initializes a new instance of the ExtensibilityDiagnosticEventReporter<T> class.

Properties

Configuration

Gets the configuration associated with the diagnostic.

DiagnosticsEnabled

Gets a value indicating whether or not diagnostics collections has been enabled.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
DiagnosticsLogger

Gets the configuration object used to log diagnostics.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
EventName System.Object.EventName
IsDisposed

Returns whether the object has been disposed once, protects against double disposal

(Inherited from DisposableObject)
PropertySelectors

Gets the set of properties registered for this diagnostic and functions for how to extract the properties out of the objects mapped to the diagnostic.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)

Methods

Dispose()

Disposes the current object then suppresses further finalization.

(Inherited from DisposableObject)
Dispose(Boolean)

Standard virtual overload for IDisposable pattern

(Inherited from DisposableObject)
DisposeManagedResources()

Allows derived classes to provide custom dispose handling for managed resources

(Inherited from DisposableObject)
DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources

(Inherited from DisposableObject)
GetItemName(T)

Gets the unique identifier of an item.

GetMetadataForItemAsync(TItem, CancellationToken)

Gets the values of the registered properties from the supplied item.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
InitializeProperties()

Initialize the dictionary of registered diagnostic properties.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
ReportErrorAsync(ExtensibilityDiagnosticErrorInfo, CancellationToken)

Report an error with the IExtensibilityDiagnosticsService.

ReportEventAsync(ExtensibilityDiagnosticEventContext, CancellationToken)

Report an instance of an event with the IExtensibilityDiagnosticsService.

ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed

(Inherited from DisposableObject)

Events

Disposing

Raised when the event is being disposed, while it is still accessible.

(Inherited from DisposableObject)

Applies to