Verify.FailOperation Method
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.
Overloads
FailOperation(String) |
Throws an InvalidOperationException. |
FailOperation(String, Object[]) |
Throws an InvalidOperationException. |
FailOperation(String)
Throws an InvalidOperationException.
[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[])
Throws an InvalidOperationException.
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