LogProviderEventLogClass.Log 方法

定義

寫入記錄項目。

public:
 virtual void Log(System::String ^ EventName, System::String ^ Computer, System::String ^ Operator, System::String ^ SourceName, System::String ^ SourceID, System::String ^ ExecutionID, System::String ^ MessageText, DateTime StartTime, DateTime EndTime, int DataCode, cli::array <System::Byte> ^ % DataBytes) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSLogging100::Log;
public virtual void Log (string EventName, string Computer, string Operator, string SourceName, string SourceID, string ExecutionID, string MessageText, DateTime StartTime, DateTime EndTime, int DataCode, ref byte[] DataBytes);
abstract member Log : string * string * string * string * string * string * string * DateTime * DateTime * int * Byte[] -> unit
override this.Log : string * string * string * string * string * string * string * DateTime * DateTime * int * Byte[] -> unit
Public Overridable Sub Log (EventName As String, Computer As String, Operator As String, SourceName As String, SourceID As String, ExecutionID As String, MessageText As String, StartTime As DateTime, EndTime As DateTime, DataCode As Integer, ByRef DataBytes As Byte())

參數

EventName
String

呼叫記錄項目的事件。

Computer
String

本機電腦。

Operator
String

使用者帳戶。

SourceName
String

做為事件來源的物件。

SourceID
String

來源的識別碼。

ExecutionID
String

特定執行的識別碼。

MessageText
String

要寫入記錄中的文字。

StartTime
DateTime

事件的開始時間。

EndTime
DateTime

事件的結束時間。

DataCode
Int32

數值資料欄位。

DataBytes
Byte[]

二進位大型物件 (BLOB) 的位元組陣列欄位。

實作

適用於