Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
The Visual Basic compiler uses this helper method to capture exceptions in the Err object.
Namespace: Microsoft.VisualBasic.CompilerServices
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
Syntax
'Declaration
Public Shared Sub SetProjectError ( _
ex As Exception _
)
public static void SetProjectError(
Exception ex
)
public:
static void SetProjectError(
Exception^ ex
)
static member SetProjectError :
ex:Exception -> unit
public static function SetProjectError(
ex : Exception
)
Parameters
- ex
Type: System. . :: . .Exception
The Exception object to be caught.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.