Provides a mechanism to store event logs which can be later viewed or replayed. This class cannot be inherited.
The following tables list the members exposed by the Trace type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| Trace | Overloaded. Initializes a new instance of the Trace class. | 
顶部
Public Properties
(see also Protected Properties )
| 名称 | Description | |
|---|---|---|
| .gif) | Annotations | Gets the collection object of all annotations to current object. (inherited from MajorObject) | 
| .gif) | Audit | Gets or sets whether the Trace object can drop any events, regardless of whether this results in degraded performance on the server. | 
| .gif) | AutoRestart | Gets or sets whether a Trace object will automatically restart when the Microsoft SQL Server 2005 Analysis Services (SSAS) service stops and restarts. | 
| .gif) | Container | (inherited from Component ) | 
| .gif) | CreatedTimestamp | Gets or sets the date and time of the creation of the object. (inherited from MajorObject) | 
| .gif) | Description | Gets or sets a description string of current object. (inherited from MajorObject) | 
| .gif) | Events | Gets the collection of event objects to be captured by a Trace. | 
| .gif) | ID | (inherited from NamedComponent ) | 
| .gif) | IsLoaded | (inherited from MajorObject ) | 
| .gif) | IsStarted | Gets the initiation status of a Trace object. | 
| .gif) | LastSchemaUpdate | Gets or sets the date and time when current object schema was last updated. (inherited from MajorObject) | 
| .gif) | LogFileAppend | Gets or sets whether Trace appends its logging output to the existing log file, or overwrites it. | 
| .gif) | LogFileName | Gets or sets the file name of the log file for the Trace object. | 
| .gif) | LogFileRollover | Gets or sets whether logging of Trace output will roll over to a new file, or whether it will stop when the maximum log file size that is specified in LogFileSize is reached. | 
| .gif) | LogFileSize | Gets or sets the maximum log file size, in megabytes. | 
| .gif) | Name | (inherited from NamedComponent ) | 
| .gif) | OwningCollection | Gets or sets the collection that contains the ModelComponent. (inherited from ModelComponent) | 
| .gif) | Parent | Gets the parent Server of a Trace object. This class cannot be inherited. | 
| .gif) | Site | (inherited from NamedComponent ) | 
| .gif) | SiteID | (inherited from NamedComponent ) | 
| .gif) | StopTime | Gets or sets the date and time at which a Trace object should stop. | 
顶部
Protected Properties
| 名称 | Description | |
|---|---|---|
| .gif) | CanRaiseEvents | (inherited from Component ) | 
| .gif) | DesignMode | (inherited from Component ) | 
| .gif) | FriendlyName | (inherited from NamedComponent ) | 
| .gif) | KeyForCollection | (inherited from NamedComponent ) | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
| .gif) | Clone | Overloaded. | 
| .gif) | CopyTo | Overloaded. | 
| .gif) | CreateObjRef | (inherited from MarshalByRefObject ) | 
| .gif) | Dispose | Overloaded. (inherited from Component ) | 
| .gif) | Drop | Overloaded. Removes current object and updates server. (inherited from MajorObject) | 
| .gif) | Equals | Overloaded. (inherited from Object ) | 
| .gif) | GetDependents | (inherited from MajorObject ) | 
| .gif) | GetHashCode | (inherited from Object ) | 
| .gif) | GetLifetimeService | (inherited from MarshalByRefObject ) | 
| .gif) | GetReferences | (inherited from MajorObject ) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | GetUpdateOverwrites | (inherited from MajorObject ) | 
| .gif) | InitializeLifetimeService | (inherited from MarshalByRefObject ) | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | Refresh | Overloaded. Updates current object from server definitions. (inherited from MajorObject) | 
| .gif) | Start | Starts a Trace. | 
| .gif) | Stop | Stops a Trace. | 
| .gif) | Submit | Overloaded. (inherited from ModelComponent ) | 
| .gif) | ToString | (inherited from NamedComponent ) | 
| .gif) | Update | Overloaded. Updates server definition of current object to the actual values using default values for update. (inherited from MajorObject) | 
| .gif) | Validate | Overloaded. (inherited from NamedComponent ) | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | AddToContainer | (inherited from ModelComponent ) | 
| .gif) | AfterInsert | (inherited from ModelComponent ) | 
| .gif) | AfterMove | (inherited from ModelComponent ) | 
| .gif) | AfterRemove | (inherited from ModelComponent ) | 
| .gif) | BeforeRemove | (inherited from ModelComponent ) | 
| .gif) | Clone | Overloaded. (inherited from MajorObject ) | 
| .gif) | CopyTo | Overloaded. | 
| .gif) | Dispose | Overloaded. (inherited from Component ) | 
| .gif) | Finalize | (inherited from Component ) | 
| .gif) | GetCreateReferences | (inherited from MajorObject ) | 
| .gif) | GetDropDependents | (inherited from MajorObject ) | 
| .gif) | GetService | (inherited from Component ) | 
| .gif) | MemberwiseClone | Overloaded. (inherited from MarshalByRefObject ) | 
| .gif) | RemoveFromContainer | (inherited from ModelComponent ) | 
| .gif) | Reset | (inherited from NamedComponent ) | 
顶部
Public Events
| 名称 | Description | |
|---|---|---|
| .gif) | Disposed | (inherited from Component ) | 
| .gif) | OnEvent | Assigns a certain trace event handler to an event associated with a Trace object. | 
| .gif) | Stopped | Indicates that a Trace has stopped. This class cannot be inherited. | 
顶部
Explicit Interface Implementations
顶部