共用方式為


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的物件。

備註

衍生類別可以利用該SyncRoot特性提供同步版本DsmlRequestDocument。 同步碼必須對 SyncRootDsmlRequestDocument執行操作,而非直接對 DsmlRequestDocument。 這確保了從其他物件衍生出的集合的正確運作。 具體來說,它會與可能同時修改 DsmlRequestDocument 該物件的其他執行緒保持適當的同步。

適用於