AnnotationStore 類別

定義

在衍生類別中被覆寫時,表示用來寫入和讀取使用者註解的資料存放區。When overridden in a derived class, represents a data store for writing and reading user annotations.

public ref class AnnotationStore abstract : IDisposable
public abstract class AnnotationStore : IDisposable
type AnnotationStore = class
    interface IDisposable
Public MustInherit Class AnnotationStore
Implements IDisposable
繼承
AnnotationStore
衍生
實作

建構函式

AnnotationStore()

初始化 AnnotationStore 類別的新執行個體。Initializes a new instance of the AnnotationStore class.

屬性

AutoFlush

取得或設定值,指出是否要將註解緩衝區中的資料立即寫入實體資料存放區。Gets or sets a value that indicates whether data in annotation buffers is to be written immediately to the physical data store.

IsDisposed

取得值,指出是否已經呼叫 DisposeGets a value that indicates whether Dispose has been called.

SyncRoot

取得要做為 AnnotationStore 關鍵區段之同步鎖定的物件。Gets the object to use as a synchronization lock for AnnotationStore critical sections.

方法

AddAnnotation(Annotation)

將新的 Annotation 加入存放區中。Adds a new Annotation to the store.

DeleteAnnotation(Guid)

將含有指定之 Id 的註解從存放區中刪除。Deletes the annotation with the specified Id from the store.

Dispose()

釋放存放區使用的所有 Managed 和 Unmanaged 資源。Releases all managed and unmanaged resources used by the store.

Dispose(Boolean)

釋放存放區所使用的 Unmanaged 資源,並可選擇釋放 Managed 資源。Releases the unmanaged resources used by the store and optionally releases the managed resources.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
Finalize()

確保終究會為這個存放區呼叫 Dispose(Boolean)Guarantees that Dispose(Boolean) will eventually be called for this store.

Flush()

強制將保留在內部緩衝區中的任何註解資料,寫入基礎儲存裝置。Forces any annotation data retained in internal buffers to be written to the underlying storage device.

GetAnnotation(Guid)

從存放區傳回含有指定之 Id 的註解。Returns the annotation with the specified Id from the store.

GetAnnotations()

傳回存放區中的所有註解清單。Returns a list of all the annotations in the store.

GetAnnotations(ContentLocator)

傳回註解清單,這些註解擁有的 Anchors 具有從相符 ContentLocatorPart 順序起始的定位器。Returns a list of annotations that have Anchors with locators that begin with a matching ContentLocatorPart sequence.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnAnchorChanged(AnnotationResourceChangedEventArgs)

引發 AnchorChanged 事件。Raises the AnchorChanged event.

OnAuthorChanged(AnnotationAuthorChangedEventArgs)

引發 AuthorChanged 事件。Raises the AuthorChanged event.

OnCargoChanged(AnnotationResourceChangedEventArgs)

引發 CargoChanged 事件。Raises the CargoChanged event.

OnStoreContentChanged(StoreContentChangedEventArgs)

引發 StoreContentChanged 事件。Raises the StoreContentChanged event.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

事件

AnchorChanged

發生於存放區中任何 Annotation 上的錨點變更時。Occurs when an anchor on any Annotation in the store changes.

AuthorChanged

發生於存放區中任何 Annotation 上的作者變更時。Occurs when an author on any Annotation in the store changes.

CargoChanged

發生於存放區中任何 Annotation 上的貨物變更時。Occurs when a cargo on any Annotation in the store changes.

StoreContentChanged

發生於在存放區中加入或刪除 Annotation 時。Occurs when an Annotation is added to or deleted from the store.

適用於