Partager via


ProjectData.SetProjectError Method (Exception, Int32)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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
<SecuritySafeCriticalAttribute> _
Public Shared Sub SetProjectError ( _
    ex As Exception, _
    lErl As Integer _
)
[SecuritySafeCriticalAttribute]
public static void SetProjectError(
    Exception ex,
    int lErl
)

Parameters

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.