Share via


TestElement.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
Public Sub AssignIsRunnable ( _
    runnable As Boolean, _
    errorMessage As String _
)
public void AssignIsRunnable(
    bool runnable,
    string errorMessage
)
public:
virtual void AssignIsRunnable(
    bool runnable, 
    String^ errorMessage
) sealed
abstract AssignIsRunnable : 
        runnable:bool * 
        errorMessage:string -> unit  
override AssignIsRunnable : 
        runnable:bool * 
        errorMessage:string -> unit
public final function AssignIsRunnable(
    runnable : boolean, 
    errorMessage : String
)

Parameters

  • runnable
    Type: Boolean

    true if the element is runnable; otherwise, false.

  • errorMessage
    Type: String

    A message for the test framework to use if the element is not runnable.

Implements

ITestElement.AssignIsRunnable(Boolean, String)

.NET Framework Security

See Also

Reference

TestElement Class

Microsoft.VisualStudio.TestTools.Common Namespace

IsRunnable

ErrorMessageForNonRunnable