PexRaisedExceptionAttribute.TryReadException 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.
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.