Partager via


PexExceptionValidatorAttributeBase.Validate(Exception, String, String) Method

Definition

Gets a value indicating whether this exception was expected

public:
 virtual Microsoft::Pex::Engine::Exceptions::PexExceptionState Validate(Exception ^ exception, [Runtime::InteropServices::Out] System::String ^ % message, [Runtime::InteropServices::Out] System::String ^ % wikiTopic);
public virtual Microsoft.Pex.Engine.Exceptions.PexExceptionState Validate (Exception exception, out string message, out string wikiTopic);
override this.Validate : Exception * string * string -> Microsoft.Pex.Engine.Exceptions.PexExceptionState
Public Overridable Function Validate (exception As Exception, ByRef message As String, ByRef wikiTopic As String) As PexExceptionState

Parameters

exception
Exception

The exception.

message
String

optional; may provide more information about why the validator came to its conclusion

wikiTopic
String

optional; may provide more information

Returns

Microsoft.Pex.Engine.Exceptions.PexExceptionState

Implements

Microsoft.Pex.Engine.Exceptions.IPexExceptionValidator.Validate(System.Exception,System.String@,System.String@)

Applies to