Verify.FailOperation Method

Definition

Overloads

FailOperation(String)

Throws an InvalidOperationException.

FailOperation(String, Object[])

Throws an InvalidOperationException.

FailOperation(String)

[System.Diagnostics.DebuggerStepThrough]
public static Exception FailOperation (string message);
[<System.Diagnostics.DebuggerStepThrough>]
static member FailOperation : string -> Exception
Public Shared Function FailOperation (message As String) As Exception

Parameters

message
String

Returns

Nothing. This method always throws. The signature claims to return an exception to allow callers to throw this method to satisfy C# execution path constraints.

Attributes

Applies to

FailOperation(String, Object[])

public:
 static Exception ^ FailOperation(System::String ^ message, ... cli::array <System::Object ^> ^ args);
[System.Diagnostics.DebuggerStepThrough]
public static Exception FailOperation (string message, params object?[] args);
[<System.Diagnostics.DebuggerStepThrough>]
static member FailOperation : string * obj[] -> Exception
Public Shared Function FailOperation (message As String, ParamArray args As Object()) As Exception

Parameters

message
String
args
Object[]

Returns

Nothing. This method always throws. The signature claims to return an exception to allow callers to throw this method to satisfy C# execution path constraints.

Attributes

Applies to