Partager via


SharePointCommandException, constructeur (String, String, String, String, Exception)

Initialise une nouvelle instance de la classe SharePointCommandException avec un message d'erreur spécifié, le nom de type complet, l'arborescence des appels de procédure d'origine et une référence à l'exception interne qui a provoqué l'exception.

Espace de noms :  Microsoft.VisualStudio.SharePoint
Assembly :  Microsoft.VisualStudio.SharePoint (dans Microsoft.VisualStudio.SharePoint.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    message As String, _
    commandId As String, _
    fullTypeName As String, _
    originalStackTrace As String, _
    innerException As Exception _
)
public SharePointCommandException(
    string message,
    string commandId,
    string fullTypeName,
    string originalStackTrace,
    Exception innerException
)

Paramètres

  • message
    Type : String

    Message d'erreur indiquant la raison de l'exception.

  • commandId
    Type : String

    ID de la commande qui a levé l'exception.

  • fullTypeName
    Type : String

    Nom de type complet de la classe command qui a levé l'exception.

  • originalStackTrace
    Type : String

    Arborescence des appels de procédure d'origine de l'exception dans le processus vssphost4.exe.

  • innerException
    Type : Exception

    Exception qui constitue la cause de l'exception actuelle.

    Si le paramètre innerException n'est pas une référence null (Nothing en Visual Basic), l'exception actuelle est levée dans un bloc catch qui gère l'exception interne.

Sécurité .NET Framework

Voir aussi

Référence

SharePointCommandException Classe

SharePointCommandException, surcharge

Microsoft.VisualStudio.SharePoint, espace de noms