ITaskExecutionContext.Log Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Esegue il metodo del log per l'attività.
Overload
Log(ITask, Exception) |
Registra lo stato dell'esecuzione dell'attività. |
Log(ITask, String) |
Indica lo stato dell'esecuzione dell'attività nel log con il parametro di stringa specificato. |
Log(ITask, String, TaskExecutionLogEntryType) |
Indica lo stato dell'esecuzione dell'attività nel log con la stringa e il tipo di voce del log specificati. |
Log(ITask, String, Exception, TaskExecutionLogEntryType) |
Indica lo stato dell'esecuzione dell'attività nel log con la stringa, il messaggio di errore e il tipo di voce del log specificati. |
Log(ITask, Exception)
Registra lo stato dell'esecuzione dell'attività.
public:
void Log(Microsoft::SqlServer::Management::ITask ^ task, Exception ^ error);
public void Log (Microsoft.SqlServer.Management.ITask task, Exception error);
abstract member Log : Microsoft.SqlServer.Management.ITask * Exception -> unit
Public Sub Log (task As ITask, error As Exception)
Parametri
- task
- ITask
Interfaccia che rappresenta l'attività.
- error
- Exception
Eccezione associata a questo messaggio.
Si applica a
Log(ITask, String)
Indica lo stato dell'esecuzione dell'attività nel log con il parametro di stringa specificato.
public:
void Log(Microsoft::SqlServer::Management::ITask ^ task, System::String ^ message);
public void Log (Microsoft.SqlServer.Management.ITask task, string message);
abstract member Log : Microsoft.SqlServer.Management.ITask * string -> unit
Public Sub Log (task As ITask, message As String)
Parametri
- task
- ITask
Interfaccia che rappresenta l'attività.
- message
- String
Valore stringa che rappresenta il testo del messaggio.
Si applica a
Log(ITask, String, TaskExecutionLogEntryType)
Indica lo stato dell'esecuzione dell'attività nel log con la stringa e il tipo di voce del log specificati.
public:
void Log(Microsoft::SqlServer::Management::ITask ^ task, System::String ^ message, Microsoft::SqlServer::Management::TaskExecutionLogEntryType logEntryType);
public void Log (Microsoft.SqlServer.Management.ITask task, string message, Microsoft.SqlServer.Management.TaskExecutionLogEntryType logEntryType);
abstract member Log : Microsoft.SqlServer.Management.ITask * string * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> unit
Public Sub Log (task As ITask, message As String, logEntryType As TaskExecutionLogEntryType)
Parametri
- task
- ITask
Interfaccia che rappresenta l'attività.
- message
- String
Valore stringa che rappresenta il testo del messaggio.
- logEntryType
- TaskExecutionLogEntryType
Tipo di logEntry da utilizzare.
Si applica a
Log(ITask, String, Exception, TaskExecutionLogEntryType)
Indica lo stato dell'esecuzione dell'attività nel log con la stringa, il messaggio di errore e il tipo di voce del log specificati.
public:
void Log(Microsoft::SqlServer::Management::ITask ^ task, System::String ^ message, Exception ^ error, Microsoft::SqlServer::Management::TaskExecutionLogEntryType logEntryType);
public void Log (Microsoft.SqlServer.Management.ITask task, string message, Exception error, Microsoft.SqlServer.Management.TaskExecutionLogEntryType logEntryType);
abstract member Log : Microsoft.SqlServer.Management.ITask * string * Exception * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> unit
Public Sub Log (task As ITask, message As String, error As Exception, logEntryType As TaskExecutionLogEntryType)
Parametri
- task
- ITask
Interfaccia che rappresenta l'attività.
- message
- String
Valore stringa che rappresenta il testo del messaggio.
- error
- Exception
Eccezione associata a questo messaggio.
- logEntryType
- TaskExecutionLogEntryType
Tipo di logEntry da utilizzare.