Partager via


SharePointCommandException Constructeurs

Définition

Surcharges

SharePointCommandException()

Initialise une nouvelle instance de la classe SharePointCommandException.

SharePointCommandException(String)

Initialise une nouvelle instance de la classe SharePointCommandException avec un message d'erreur spécifié.

SharePointCommandException(SerializationInfo, StreamingContext)

Initialise une nouvelle instance de la classe SharePointCommandException avec des données sérialisées.

SharePointCommandException(String, Exception)

Initialise une nouvelle instance de la classe SharePointCommandException avec un message d'erreur spécifié et une référence à l'exception interne ayant provoqué l'exception.

SharePointCommandException(String, String, String, String)

Initialise une nouvelle instance de la classe SharePointCommandException avec un message d'erreur spécifié, le nom de type complet et l'arborescence des appels de procédure d'origine.

SharePointCommandException(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.

SharePointCommandException()

Initialise une nouvelle instance de la classe SharePointCommandException.

public:
 SharePointCommandException();
public SharePointCommandException ();
Public Sub New ()

S’applique à

SharePointCommandException(String)

Initialise une nouvelle instance de la classe SharePointCommandException avec un message d'erreur spécifié.

public:
 SharePointCommandException(System::String ^ message);
public SharePointCommandException (string message);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String)

Paramètres

message
String

Message décrivant l'erreur.

S’applique à

SharePointCommandException(SerializationInfo, StreamingContext)

Initialise une nouvelle instance de la classe SharePointCommandException avec des données sérialisées.

protected:
 SharePointCommandException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SharePointCommandException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Paramètres

info
SerializationInfo

Objet SerializationInfo qui contient les données d'objet sérialisées concernant l'exception levée.

context
StreamingContext

Objet SerializationInfo qui contient les informations contextuelles sur la source ou la destination.

S’applique à

SharePointCommandException(String, Exception)

Initialise une nouvelle instance de la classe SharePointCommandException avec un message d'erreur spécifié et une référence à l'exception interne ayant provoqué l'exception.

public:
 SharePointCommandException(System::String ^ message, Exception ^ innerException);
public SharePointCommandException (string message, Exception innerException);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string * Exception -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String, innerException As Exception)

Paramètres

message
String

Message d'erreur qui explique la raison de l'exception.

innerException
Exception

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

S’applique à

SharePointCommandException(String, String, String, String)

Initialise une nouvelle instance de la classe SharePointCommandException avec un message d'erreur spécifié, le nom de type complet et l'arborescence des appels de procédure d'origine.

public:
 SharePointCommandException(System::String ^ message, System::String ^ commandId, System::String ^ fullTypeName, System::String ^ originalStackTrace);
public SharePointCommandException (string message, string commandId, string fullTypeName, string originalStackTrace);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string * string * string * string -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String, commandId As String, fullTypeName As String, originalStackTrace As String)

Paramètres

message
String

Message d'erreur qui explique la raison de l'exception.

commandId
String

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

fullTypeName
String

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

originalStackTrace
String

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

S’applique à

SharePointCommandException(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.

public:
 SharePointCommandException(System::String ^ message, System::String ^ commandId, System::String ^ fullTypeName, System::String ^ originalStackTrace, Exception ^ innerException);
public SharePointCommandException (string message, string commandId, string fullTypeName, string originalStackTrace, Exception innerException);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string * string * string * string * Exception -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String, commandId As String, fullTypeName As String, originalStackTrace As String, innerException As Exception)

Paramètres

message
String

Message d'erreur qui explique la raison de l'exception.

commandId
String

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

fullTypeName
String

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

originalStackTrace
String

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

innerException
Exception

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

S’applique à