Language

ResourceLockAttribute(String) Constructor

Definition

Initializes a new instance of the ResourceLockAttribute class for the specified resource, using ReadWrite access.

public ResourceLockAttribute(string resource);
new Microsoft.VisualStudio.TestTools.UnitTesting.ResourceLockAttribute : string -> Microsoft.VisualStudio.TestTools.UnitTesting.ResourceLockAttribute
Public Sub New (resource As String)

Parameters

resource
String

The opaque key identifying the shared resource.

Exceptions

resource is null.

resource is empty or whitespace.

Applies to