ITaskExecutionContext.Log メソッド

定義

タスクのログ メソッドを実行します。

オーバーロード

Log(ITask, Exception)

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

Log(ITask, String)

指定された文字列パラメーターを使用して、タスク実行の進行状況をログに記録します。

Log(ITask, String, TaskExecutionLogEntryType)

指定された文字列とログ エントリの種類を使用して、タスク実行の進行状況をログに記録します。

Log(ITask, String, Exception, TaskExecutionLogEntryType)

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

Log(ITask, Exception)

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

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)

パラメーター

task
ITask

タスクを表すインターフェイス。

error
Exception

このメッセージに関連付けられた例外。

適用対象

Log(ITask, String)

指定された文字列パラメーターを使用して、タスク実行の進行状況をログに記録します。

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)

パラメーター

task
ITask

タスクを表すインターフェイス。

message
String

テキスト メッセージを表す文字列値。

適用対象

Log(ITask, String, TaskExecutionLogEntryType)

指定された文字列とログ エントリの種類を使用して、タスク実行の進行状況をログに記録します。

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)

パラメーター

task
ITask

タスクを表すインターフェイス。

message
String

テキスト メッセージを表す文字列値。

logEntryType
TaskExecutionLogEntryType

使用するログ エントリの種類。

適用対象

Log(ITask, String, Exception, TaskExecutionLogEntryType)

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

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)

パラメーター

task
ITask

タスクを表すインターフェイス。

message
String

テキスト メッセージを表す文字列値。

error
Exception

このメッセージに関連付けられた例外。

logEntryType
TaskExecutionLogEntryType

使用するログ エントリの種類。

適用対象