Bewerken

Share via


PropertyLockMode Enum

Definition

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

public enum class PropertyLockMode
[System.Runtime.InteropServices.ComVisible(false)]
[System.Serializable]
public enum PropertyLockMode
[<System.Runtime.InteropServices.ComVisible(false)>]
[<System.Serializable>]
type PropertyLockMode = 
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