Condividi tramite


WebPartPageUserException Constructor (String, Exception)

Initializes a new instance of the WebPartPageUserException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub New ( _
    s As String, _
    inner As Exception _
)
'Usage
Dim s As String
Dim inner As Exception

Dim instance As New WebPartPageUserException(s, inner)
public WebPartPageUserException(
    string s,
    Exception inner
)

Parameters

  • s
    Type: System.String

    The error message that explains the reason for the exception.

  • inner
    Type: System.Exception

    The inner exception that is the cause of the current exception. If the parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

Remarks

If inner is not null , the current exception is raised in a catch block that handles the inner exception.

See Also

Reference

WebPartPageUserException Class

WebPartPageUserException Members

WebPartPageUserException Overload

Microsoft.SharePoint.WebPartPages Namespace