Language

ResourceLockAttribute.Mode Property

Definition

Gets or sets the access mode for the resource. Defaults to ReadWrite (exclusive). Set to Read when the test only reads the resource, so that it can run concurrently with other readers and blocks only against a writer.

public Microsoft.VisualStudio.TestTools.UnitTesting.ResourceAccessMode Mode { get; set; }
member this.Mode : Microsoft.VisualStudio.TestTools.UnitTesting.ResourceAccessMode with get, set
Public Property Mode As ResourceAccessMode

Property Value

Applies to