Edit

Share via


NamedWaitHandleOptions.CurrentUserOnly Property

Definition

Gets or sets a value that indicates whether the named synchronization object is limited in access to the current user.

public:
 property bool CurrentUserOnly { bool get(); void set(bool value); };
public bool CurrentUserOnly { get; set; }
member this.CurrentUserOnly : bool with get, set
Public Property CurrentUserOnly As Boolean

Property Value

true if the named synchronization object is limited in access to the current user; otherwise, false. The default is true.

Remarks

If the option is true when creating a named synchronization object, the object is limited in access to the calling user. If the option is true when opening an existing named synchronization object, the object's access controls are verified for the calling user.

If the option is false when creating a named synchronization object, the object is not limited in access to a user.

On Unix-like operating systems, each user has namespaces for the object's name that are used when the option is true. These user-scoped namespaces are distinct from user-scoped namespaces for other users, and also distinct from namespaces used when the option is false.

Applies to