DsmlRequestDocument.SyncRoot 屬性

定義

SyncRoot 屬性包含用來同步存取 DsmlRequestDocument 的物件。

protected:
 property System::Object ^ SyncRoot { System::Object ^ get(); };
protected object SyncRoot { get; }
member this.SyncRoot : obj
Protected ReadOnly Property SyncRoot As Object

屬性值

可用來同步存取 DsmlRequestDocument 的物件。

備註

衍生類別可以使用 屬性來提供的同步版本DsmlRequestDocumentSyncRoot。 同步程式代碼必須在 的 DsmlRequestDocumentSyncRoot執行作業,而不是直接在 DsmlRequestDocument上。 如此可確保衍生自其他物件的集合可以正常運作, 具體而言,它會與可能同時修改 DsmlRequestDocument 物件的其他線程維持適當的同步處理。

適用於