Partager via


PexRaisedExceptionAttribute.TryReadException Method

Definition

Tries to read the exception from the attribute provider.

public:
 static bool TryReadException(Microsoft::ExtendedReflection::Metadata::ICustomAttributeProviderEx ^ attributeProvider, [Runtime::InteropServices::Out] Microsoft::Pex::Framework::Generated::IPexRaisedExceptionSource ^ % raisedException);
public static bool TryReadException (Microsoft.ExtendedReflection.Metadata.ICustomAttributeProviderEx attributeProvider, out Microsoft.Pex.Framework.Generated.IPexRaisedExceptionSource raisedException);
static member TryReadException : Microsoft.ExtendedReflection.Metadata.ICustomAttributeProviderEx * IPexRaisedExceptionSource -> bool
Public Shared Function TryReadException (attributeProvider As ICustomAttributeProviderEx, ByRef raisedException As IPexRaisedExceptionSource) As Boolean

Parameters

attributeProvider
Microsoft.ExtendedReflection.Metadata.ICustomAttributeProviderEx

The attribute p rovider.

raisedException
IPexRaisedExceptionSource

The raised exception.

Returns

Applies to