Share via


PermissionSet.IsSynchronized Properti

Definisi

Mendapatkan nilai yang menunjukkan apakah koleksi dijamin aman untuk utas.

public:
 virtual property bool IsSynchronized { bool get(); };
public virtual bool IsSynchronized { get; }
member this.IsSynchronized : bool
Public Overridable ReadOnly Property IsSynchronized As Boolean

Nilai Properti

Selalu false.

Penerapan

Contoh

Contoh kode berikut menunjukkan nilai yang dikembalikan oleh IsSynchronized properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk PermissionSet kelas .

// Display the value of the IsSynchronized property.
Console::WriteLine( "IsSynchronized property = {0}", ps1->IsSynchronized );
// Display the value of the IsSynchronized property.
Console.WriteLine("IsSynchronized property = " + ps1.IsSynchronized);
' Display the value of the IsSynchronized property.
Console.WriteLine("IsSynchronized property = " & ps1.IsSynchronized)

Keterangan

PermissionSet tidak secara otomatis menangani keamanan utas, sehingga properti ini selalu false.

Metode ini diperlukan untuk mendukung ICollection.

Berlaku untuk