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, _
lErl As Integer _
)
public static void SetProjectError(
Exception ex,
int lErl
)
public:
static void SetProjectError(
Exception^ ex,
int lErl
)
static member SetProjectError :
ex:Exception *
lErl:int -> unit
public static function SetProjectError(
ex : Exception,
lErl : int
)
Parameters
- ex
Type: System. . :: . .Exception
The Exception object to be caught.
- lErl
Type: System. . :: . .Int32
The line number of the exception.
.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.