HttpException.CreateFromLastError(String) Metodo

Definizione

Crea una nuova eccezione HttpException in base al codice di errore restituito dal metodo Windows API GetLastError().

public:
 static System::Web::HttpException ^ CreateFromLastError(System::String ^ message);
public static System.Web.HttpException CreateFromLastError(string message);
static member CreateFromLastError : string -> System.Web.HttpException
Public Shared Function CreateFromLastError (message As String) As HttpException

Parametri

message
String

Messaggio di errore visualizzato al client quando viene generata l'eccezione.

Valori restituiti

Un HttpException basato sul codice di errore restituito da una chiamata al metodo Windows API GetLastError().

Si applica a

Vedi anche