Share via


ITestElement.AssignIsRunnable Method

Assigns values for the IsRunnable and ErrorMessageForNonRunnable properties.

Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)

Syntax

'Declaration
Sub AssignIsRunnable ( _
    runnable As Boolean, _
    errorMessage As String _
)
void AssignIsRunnable(
    bool runnable,
    string errorMessage
)
void AssignIsRunnable(
    bool runnable, 
    String^ errorMessage
)
abstract AssignIsRunnable : 
        runnable:bool * 
        errorMessage:string -> unit 
function AssignIsRunnable(
    runnable : boolean, 
    errorMessage : String
)

Parameters

  • runnable
    Type: System.Boolean
    true if the element is runnable; otherwise, false.
  • errorMessage
    Type: System.String
    A message for the test framework to use if the element is not runnable.

.NET Framework Security

See Also

Reference

ITestElement Interface

Microsoft.VisualStudio.TestTools.Common Namespace

IsRunnable

ErrorMessageForNonRunnable