TaskExecutionContext.Log 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.
Enregistre la progression de l'exécution de la tâche.
Surcharges
| Log(ITask, Exception) |
Enregistre la progression de l'exécution de la tâche pour la tâche et l'exception spécifiées. |
| Log(ITask, String) |
Enregistre la progression de l'exécution de la tâche. |
| Log(ITask, String, TaskExecutionLogEntryType) |
Enregistre la progression de l'exécution de la tâche avec la tâche, le message et le type d'entrée du journal spécifiés. |
| Log(ITask, String, Exception, TaskExecutionLogEntryType) |
Enregistre la progression de l'exécution de la tâche avec la tâche, le message, l'exception et le type d'entrée du journal spécifiés. |
Log(ITask, Exception)
Enregistre la progression de l'exécution de la tâche pour la tâche et l'exception spécifiées.
public:
virtual 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
override this.Log : Microsoft.SqlServer.Management.ITask * Exception -> unit
Public Sub Log (task As ITask, error As Exception)
Paramètres
Implémente
S’applique à
Log(ITask, String)
Enregistre la progression de l'exécution de la tâche.
public:
virtual 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
override this.Log : Microsoft.SqlServer.Management.ITask * string -> unit
Public Sub Log (task As ITask, message As String)
Paramètres
Implémente
S’applique à
Log(ITask, String, TaskExecutionLogEntryType)
Enregistre la progression de l'exécution de la tâche avec la tâche, le message et le type d'entrée du journal spécifiés.
public:
virtual 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
override this.Log : Microsoft.SqlServer.Management.ITask * string * Microsoft.SqlServer.Management.TaskExecutionLogEntryType -> unit
Public Sub Log (task As ITask, message As String, logEntryType As TaskExecutionLogEntryType)
Paramètres
- logEntryType
- TaskExecutionLogEntryType
TaskExecutionLogEntryType de ce message.
Implémente
S’applique à
Log(ITask, String, Exception, TaskExecutionLogEntryType)
Enregistre la progression de l'exécution de la tâche avec la tâche, le message, l'exception et le type d'entrée du journal spécifiés.
public:
virtual 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
override this.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)
Paramètres
- logEntryType
- TaskExecutionLogEntryType
TaskExecutionLogEntryType de ce message.