DsmlRequestDocument.SyncRoot DsmlRequestDocument.SyncRoot DsmlRequestDocument.SyncRoot DsmlRequestDocument.SyncRoot Property

定義

SyncRoot 屬性包含用來同步存取 DsmlRequestDocument 的物件。The SyncRoot property contains an object that can be used to synchronize access to the DsmlRequestDocument.

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

屬性值

可用以同步存取 DsmlRequestDocument 的物件。An object that can be used to synchronize access to the DsmlRequestDocument.

實作

備註

衍生類別可以SyncRoot使用屬性來提供的DsmlRequestDocument同步處理版本。Derived classes can provide synchronized versions of the DsmlRequestDocument using the SyncRoot property. 同步處理常式代碼必須在的上SyncRoot DsmlRequestDocument執行作業DsmlRequestDocument, 而不是直接在上執行。The synchronizing code must perform operations on the SyncRoot of the DsmlRequestDocument, not directly on the DsmlRequestDocument. 如此可確保衍生自其他物件的集合可以正常運作,This ensures proper operation of collections that are derived from other objects. 具體而言, 它會與可能同時修改DsmlRequestDocument物件的其他執行緒保持適當的同步處理。Specifically, it maintains proper synchronization with other threads that might be simultaneously modifying the DsmlRequestDocument object.

適用於