LogProviderSQLProfilerClass.Log 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
寫入日誌條目。
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)的位元組陣列欄位。