次の方法で共有


PermissionSet.SyncRoot プロパティ

現在のコレクションのルート オブジェクトを取得します。

Public Overridable ReadOnly Property SyncRoot As Object  Implements _   ICollection.SyncRoot
[C#]
public virtual object SyncRoot {get;}
[C++]
public: __property virtual Object* get_SyncRoot();
[JScript]
public function get SyncRoot() : Object;

プロパティ値

現在のコレクションのルート オブジェクト。

実装

ICollection.SyncRoot

解説

このメソッドは、 ICollection をサポートするために必要です。

使用例

 
' Display the value of the SyncRoot property.
Console.WriteLine("SyncRoot property = " & CType(ps1.SyncRoot, PermissionSet).ToString())

[C#] 
// Display the value of the SyncRoot property.
Console.WriteLine("SyncRoot property = " + ps1.SyncRoot);

[C++] 
// Display the value of the SyncRoot property.
Console::WriteLine(S"SyncRoot property = {0}", ps1->SyncRoot);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, Common Language Infrastructure (CLI) Standard

参照

PermissionSet クラス | PermissionSet メンバ | System.Security 名前空間