TaskExecutionContext.Log メソッド

定義

タスク実行の進行状況をログに記録します。

オーバーロード

Log(ITask, Exception)

指定したタスクと例外に対するタスク実行の進行状況をログに記録します。

Log(ITask, String)

タスク実行の進行状況をログに記録します。

Log(ITask, String, TaskExecutionLogEntryType)

指定したタスク、メッセージ、およびログ エントリの種類のタスク実行の進行状況をログに記録します。

Log(ITask, String, Exception, TaskExecutionLogEntryType)

指定したタスク、メッセージ、例外、およびログ エントリの種類のタスク実行の進行状況をログに記録します。

Log(ITask, Exception)

指定したタスクと例外に対するタスク実行の進行状況をログに記録します。

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)

パラメーター

task
ITask

ログに記録するタスクを表す ITask です。

error
Exception

このメッセージに関連付けられた Exception です。

実装

適用対象

Log(ITask, String)

タスク実行の進行状況をログに記録します。

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)

パラメーター

task
ITask

ログに記録するタスクを表す ITask です。

message
String

ログに記録するメッセージを表す String です。

実装

適用対象

Log(ITask, String, TaskExecutionLogEntryType)

指定したタスク、メッセージ、およびログ エントリの種類のタスク実行の進行状況をログに記録します。

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)

パラメーター

task
ITask

ログに記録するタスクを表す ITask です。

message
String

ログに記録するメッセージを表す String です。

logEntryType
TaskExecutionLogEntryType

このメッセージの TaskExecutionLogEntryType です。

実装

適用対象

Log(ITask, String, Exception, TaskExecutionLogEntryType)

指定したタスク、メッセージ、例外、およびログ エントリの種類のタスク実行の進行状況をログに記録します。

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)

パラメーター

task
ITask

ログに記録するタスクを表す ITask です。

message
String

ログに記録するメッセージを表す String です。

error
Exception

このメッセージに関連付けられた Exception です。

logEntryType
TaskExecutionLogEntryType

このメッセージの TaskExecutionLogEntryType です。

実装

適用対象