Partager via


PexAllowedExceptionFromTypeUnderTestAttribute Constructors

Definition

Overloads

PexAllowedExceptionFromTypeUnderTestAttribute(Type)

Initializes a new instance of the PexAllowedExceptionFromTypeAttribute class.

PexAllowedExceptionFromTypeUnderTestAttribute(Type, Boolean)

Initializes a new instance of the PexAllowedExceptionFromTypeAttribute class.

PexAllowedExceptionFromTypeUnderTestAttribute(Type)

Initializes a new instance of the PexAllowedExceptionFromTypeAttribute class.

public:
 PexAllowedExceptionFromTypeUnderTestAttribute(Type ^ allowedExceptionType);
public PexAllowedExceptionFromTypeUnderTestAttribute (Type allowedExceptionType);
new Microsoft.Pex.Framework.Validation.PexAllowedExceptionFromTypeUnderTestAttribute : Type -> Microsoft.Pex.Framework.Validation.PexAllowedExceptionFromTypeUnderTestAttribute
Public Sub New (allowedExceptionType As Type)

Parameters

allowedExceptionType
Type

Type of the allowed exception.

Exceptions

allowedExceptionType is a null reference.

Applies to

PexAllowedExceptionFromTypeUnderTestAttribute(Type, Boolean)

Initializes a new instance of the PexAllowedExceptionFromTypeAttribute class.

public:
 PexAllowedExceptionFromTypeUnderTestAttribute(Type ^ allowedExceptionType, bool acceptExceptionSubtypes);
public PexAllowedExceptionFromTypeUnderTestAttribute (Type allowedExceptionType, bool acceptExceptionSubtypes);
new Microsoft.Pex.Framework.Validation.PexAllowedExceptionFromTypeUnderTestAttribute : Type * bool -> Microsoft.Pex.Framework.Validation.PexAllowedExceptionFromTypeUnderTestAttribute
Public Sub New (allowedExceptionType As Type, acceptExceptionSubtypes As Boolean)

Parameters

allowedExceptionType
Type

Type of the allowed exception.

acceptExceptionSubtypes
Boolean

if set to true [accept exception subtypes].

Exceptions

allowedExceptionType is a null reference.

Applies to