ErrorExtensionsAsSoxException Method | |
Error Extension Method
Namespace:
PSI.Sox
Assembly:
PSI.Sox (in PSI.Sox.dll) Version: 2.1
Syntax public static SoxException AsSoxException(
this Exception ex,
SoxErrorCode errorCode
)
public:
[ExtensionAttribute]
static SoxException^ AsSoxException(
Exception^ ex,
SoxErrorCode errorCode
)
PSI.Sox.ErrorExtensions.AsSoxException = function(ex, errorCode);
Parameters
- ex
- Type: SystemException
Exception - errorCode
- Type: PSI.SoxSoxErrorCode
SoxErrorCode
Return Value
Type:
SoxExceptionUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also