Trace 類別

定義

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

[System.Runtime.InteropServices.Guid("6418C2E4-B678-46c3-8762-DC344F549317")]
public sealed class Trace : Microsoft.AnalysisServices.Core.Trace, ICloneable, IDisposable, Microsoft.AnalysisServices.IMajorObject, Microsoft.AnalysisServices.ITrace
[<System.Runtime.InteropServices.Guid("6418C2E4-B678-46c3-8762-DC344F549317")>]
type Trace = class
    inherit Trace
    interface IMajorObject
    interface INamedComponent
    interface IModelComponent
    interface IComponent
    interface IDisposable
    interface ITrace
    interface ICloneable
Public NotInheritable Class Trace
Inherits Trace
Implements ICloneable, IDisposable, IMajorObject, ITrace
繼承
屬性
實作

建構函式

Trace()

使用預設值,初始化 Trace 類別的新執行個體。

Trace(String, String)

使用名稱和識別碼,初始化 Trace 類別的新執行個體。

欄位

MaxIDLength

指定識別碼的最大長度。

(繼承來源 NamedComponent)
MaxNameLength

指定名稱的最大長度。

(繼承來源 NamedComponent)

屬性

Annotations

取得與所有主要物件建立關聯之所有註解的集合。

(繼承來源 MajorObject)
Audit

取得或設定值,指出不論動作是否會導致伺服器降低效能,追蹤物件是否可以卸除任何事件。

AutoRestart

取得或設定值,指出 Trace 物件是否會在服務停止再重新啟動時自動重新啟動。

CreatedTimestamp

取得或設定物件的建立日期和時間。

(繼承來源 MajorObject)
Description

取得或設定主要物件的描述。

(繼承來源 MajorObject)
Events

取得追蹤要擷取的事件物件集合。

Filter

取得或設定要加入的指定篩選。

FriendlyName

取得元件的使用者易記名稱。

(繼承來源 NamedComponent)
ID

取得或設定元件的識別碼。

(繼承來源 NamedComponent)
IsLoaded

取得值,指出是否已載入 MajorObject。

(繼承來源 MajorObject)
IsStarted

取得值,指出是否已將 Trace 物件初始化。

KeyForCollection

取得集合中使用的索引鍵。

(繼承來源 NamedComponent)
LastSchemaUpdate

取得或設定上次更新物件結構描述的日期和時間。

(繼承來源 MajorObject)
LogFileAppend

取得或設定值,指出 Trace 是否將其記錄輸出附加至現有的記錄檔,或是加以覆寫。

LogFileName

取得或設定 Trace 物件記錄檔的檔案名稱。

LogFileRollover

取得或設定值,指出在達到 LogFileSize 中指定的記錄檔大小上限時,Trace 輸出的記錄會換用新檔案或是停止。

LogFileSize

取得或設定記錄檔大小上限 (以 MB 為單位)。

Name

取得或設定元件的名稱。

(繼承來源 NamedComponent)
OwningCollection

取得或設定包含 ModelComponent 的集合。

(繼承來源 ModelComponent)
Parent

取得 Trace 物件的父 Server 物件。

Site

取得或設定與元件建立關聯的網站。

(繼承來源 NamedComponent)
SiteID

取得或設定與元件相關聯之網站的識別碼。

(繼承來源 NamedComponent)
StopTime

取得或設定 Trace 物件應該停止的日期和時間。

XEvent

取得或設定屬於此類別目錄的 XEvent 集合。

方法

AddToContainer(IContainer)

將 ModelComponent 物件新增至指定的容器。

(繼承來源 ModelComponent)
AfterInsert(Int32)

新增到指定的索引位置之後顯示 ModelComponent 物件。

(繼承來源 ModelComponent)
AfterMove(Int32, Int32)

移動到指定的索引之後顯示 ModelComponent 物件。

(繼承來源 ModelComponent)
AfterRemove(ModelComponentCollection)

在移除 ModelComponent 物件後顯示 ModelComponentCollection。

(繼承來源 ModelComponent)
BeforeRemove(Boolean)

在清除之前移除 ModelComponent 物件。

(繼承來源 ModelComponent)
Clone()

傳回物件的複製。

Clone(Boolean)

建立 MajorObject 物件的新複本。

(繼承來源 MajorObject)
CopyTo(MajorObject, Boolean)

將 MajorObject 物件複製到指定的目的地。

(繼承來源 MajorObject)
CopyTo(ModelComponent)

將 ModelComponent 物件複製到指定的物件。

(繼承來源 ModelComponent)
CopyTo(NamedComponent)

將 NamedComponent 物件複製到指定的物件。

(繼承來源 NamedComponent)
CopyTo(Trace)

將此物件的內容複製到另一個物件 (目的地)。

Drop()

移除目前的物件並更新伺服器。

(繼承來源 MajorObject)
Drop(DropOptions)

使用指定的選項,移除目前的物件並更新伺服器。

(繼承來源 MajorObject)
Drop(DropOptions, XmlaWarningCollection)

使用指定的選項,移除目前的物件並更新伺服器。 在指定的警告物件上傳回卸除作業所產生的警告。

(繼承來源 MajorObject)
Drop(DropOptions, XmlaWarningCollection, ImpactDetailCollection)

使用指定的選項,移除目前的物件並更新伺服器。 在指定的警告變數上傳回卸除作業所產生的警告,並且在指定的 impactResult 變數上傳回作業中受影響物件的結果。

(繼承來源 MajorObject)
Drop(DropOptions, XmlaWarningCollection, ImpactDetailCollection, Boolean)

使用指定的選項,移除目前的物件並更新伺服器。 在指定的警告變數上傳回卸除作業所產生的警告,並且在指定的 impactResult 變數上傳回作業中受影響物件的結果。

(繼承來源 MajorObject)
GetCreateReferences(Hashtable, Boolean, Boolean)

取得 Hashtable 來建立參考。

(繼承來源 MajorObject)
GetDependents(Hashtable)

將相依性取得放入指定的 Hashtable 中。

(繼承來源 MajorObject)
GetDropDependents(Hashtable, Hashtable)

取得卸除相依項目。

(繼承來源 MajorObject)
GetReferences(Hashtable, Boolean)

取得 MajorObject 所參考的物件。

(繼承來源 MajorObject)
GetUpdateOverwrites(Boolean)

取得覆寫更新之 MajorObject 的 Hashtable 物件。

(繼承來源 MajorObject)
Refresh()

從伺服器定義更新物件。

(繼承來源 MajorObject)
Refresh(Boolean)

更新來自伺服器定義的物件,而且如果指定的話,也更新載入的相依物件。

(繼承來源 MajorObject)
Refresh(Boolean, RefreshType)

更新來自伺服器定義的物件,而且如果指定的話,也更新載入的相依物件。

(繼承來源 MajorObject)
RemoveFromContainer(IContainer)

將 ModelComponent 物件從指定的容器中移除。

(繼承來源 ModelComponent)
Reset()

將元件重設為其初始狀態。

(繼承來源 NamedComponent)
Start()

啟動 Trace。

Stop()

停止 Trace。

Submit()

提交 ModelComponent 物件。

(繼承來源 ModelComponent)
Submit(Boolean)

提交 ModelComponent 物件。

(繼承來源 ModelComponent)
ToString()

傳回字串。字串表示目前的具名元件。

(繼承來源 NamedComponent)
Update()

使用預設值來更新相依物件,將目前物件的伺服器定義更新為實際值。

(繼承來源 MajorObject)
Update(UpdateOptions)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode, XmlaWarningCollection)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值,並且報告作業所產生的任何警告。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode, XmlaWarningCollection, ImpactDetailCollection)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值,報告作業所產生的任何警告,並且從作業中傳回受影響的物件。

(繼承來源 MajorObject)
Update(UpdateOptions, UpdateMode, XmlaWarningCollection, ImpactDetailCollection, Boolean)

使用指定的選項來更新相依物件,將目前物件的伺服器定義更新為實際值,報告作業所產生的任何警告,並且從作業中傳回受影響的物件。 如果 analyzeImpactOnly 為 true,影響分析作業執行時不會進行更新作業。

(繼承來源 MajorObject)
Validate(ValidationErrorCollection)

驗證它附加至的元素;傳回集合中遇到的任何錯誤。

(繼承來源 ModelComponent)
Validate(ValidationErrorCollection, Boolean)

驗證它附加至的元素;傳回集合中遇到的任何錯誤。 也包含可傳回詳細錯誤的參數。

(繼承來源 ModelComponent)
Validate(ValidationErrorCollection, Boolean, ServerEdition)

判斷 NamedComponent 是否有效。

(繼承來源 NamedComponent)
Validate(ValidationResultCollection)

指出 MajorObject 是否有效。

(繼承來源 MajorObject)
Validate(ValidationResultCollection, ValidationOptions)

指出 MajorObject 是否有效。

(繼承來源 MajorObject)
Validate(ValidationResultCollection, ValidationOptions, ServerEdition)

指出 MajorObject 是否有效。

(繼承來源 MajorObject)

事件

OnEvent

將特定的追蹤事件處理常式,指派給與 Trace 物件相關聯的事件。

Stopped

指出追蹤已停止。 此類別無法獲得繼承。

明確介面實作

ICloneable.Clone()

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IDeserializationCallback.OnDeserialization(Object)

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

(繼承來源 MajorObject)
IDeserializationStartCallback.OnDeserializationBegin(Object)

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

(繼承來源 MajorObject)
IFormattable.ToString(String, IFormatProvider)

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

(繼承來源 NamedComponent)
IHostableComponent.Host

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

(繼承來源 ModelComponent)
IMajorObject.BaseType

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IMajorObject.CreateBody()

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IMajorObject.DependsOn(IMajorObject)

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IMajorObject.ObjectReference

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IMajorObject.ParentDatabase

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IMajorObject.ParentServer

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IMajorObject.Path

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IMajorObject.WriteRef(XmlWriter)

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

IModelComponent.FriendlyPath

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

(繼承來源 ModelComponent)
IModelComponent.OwningCollection

提供儲存事件記錄檔的機制,以供稍後檢視或重新執行。 此類別無法獲得繼承。

(繼承來源 ModelComponent)

適用於