PropertyLockMode Enum

Definition

Specifies the mode for accessing shared properties in the shared property group manager.

C#
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public enum PropertyLockMode
Inheritance
PropertyLockMode
Attributes

Fields

Name Value Description
SetGet 0

Locks a property during a get or set, assuring that every get or set operation on a shared property is atomic.

Method 1

Locks all the properties in the shared property group for exclusive use by the caller, as long as the caller's current method is executing.

CAUTION: Do not use PropertyLockMode.Method when creating a property group in a constructor because this can cause a deadlock.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1