TaskExecutionContext.Log 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
記錄任務執行進度。
多載
| 名稱 | Description |
|---|---|
| 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)
參數
實作
適用於
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)
參數
實作
適用於
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)
參數
- 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)
參數
- logEntryType
- TaskExecutionLogEntryType
這 TaskExecutionLogEntryType 則訊息。