ErrorCodes.ExceptionFromCode(Int32, String, Object, Object) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée un RemoteInvocationException avec un code d’erreur spécifié.
public static StreamJsonRpc.RemoteInvocationException? ExceptionFromCode (int errorCode, string message = default, object errorData = default, object deserializedErrorData = default);
static member ExceptionFromCode : int * string * obj * obj -> StreamJsonRpc.RemoteInvocationException
Public Shared Function ExceptionFromCode (errorCode As Integer, Optional message As String = Nothing, Optional errorData As Object = Nothing, Optional deserializedErrorData As Object = Nothing) As RemoteInvocationException
Paramètres
- errorCode
- Int32
Code d'erreur.
- message
- String
Message pour l'exception.
- errorData
- Object
Données d’erreur pour l’exception.
- deserializedErrorData
- Object
Données d’erreur désérialisées pour l’exception.
Retours
Objet RemoteInvocationException.