Export (0) Print
Expand All

ProviderMetadata Class

Contains static information about an event provider, such as the name and id of the provider, and the collection of events defined in the provider.

System.Object
  System.Diagnostics.Eventing.Reader.ProviderMetadata

Namespace:  System.Diagnostics.Eventing.Reader
Assembly:  System.Core (in System.Core.dll)

[HostProtectionAttribute(SecurityAction.LinkDemand, MayLeakOnAbort = true)]
public class ProviderMetadata : IDisposable

The ProviderMetadata type exposes the following members.

  NameDescription
Public methodProviderMetadata(String)Initializes a new instance of the ProviderMetadata class by specifying the name of the provider that you want to retrieve information about.
Public methodProviderMetadata(String, EventLogSession, CultureInfo)Initializes a new instance of the ProviderMetadata class by specifying the name of the provider that you want to retrieve information about, the event log service that the provider is registered with, and the language that you want to return the information in.
Top

  NameDescription
Public propertyDisplayNameGets the localized name of the event provider.
Public propertyEventsGets an enumerable collection of EventMetadata objects, each of which represents an event that is defined in the provider.
Public propertyHelpLinkGets the base of the URL used to form help requests for the events in this event provider.
Public propertyIdGets the globally unique identifier (GUID) for the event provider.
Public propertyKeywordsGets an enumerable collection of EventKeyword objects, each of which represent an event keyword that is defined in the event provider.
Public propertyLevelsGets an enumerable collection of EventLevel objects, each of which represent a level that is defined in the event provider.
Public propertyLogLinksGets an enumerable collection of EventLogLink objects, each of which represent a link to an event log that is used by the event provider.
Public propertyMessageFilePathGets the path of the file that contains the message table resource that has the strings associated with the provider metadata.
Public propertyNameGets the unique name of the event provider.
Public propertyOpcodesGets an enumerable collection of EventOpcode objects, each of which represent an opcode that is defined in the event provider.
Public propertyParameterFilePathGets the path of the file that contains the message table resource that has the strings used for parameter substitutions in event descriptions.
Public propertyResourceFilePathGets the path to the file that contains the metadata associated with the provider.
Public propertyTasksGets an enumerable collection of EventTask objects, each of which represent a task that is defined in the event provider.
Top

  NameDescription
Public methodDispose()Releases all the resources used by this object.
Protected methodDispose(Boolean)Releases the unmanaged resources used by this object, and optionally releases the managed resources.
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

NoteNote

The HostProtectionAttribute attribute applied to this type or member has the following Resources property value: MayLeakOnAbort. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft