ResourceLockAttribute(String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.