Метод IDTSLogging100.Log
Этот API-интерфейс поддерживает инфраструктуру SQL Server 2012 и не предназначен для использования непосредственно из кода.
Writes the log entry.
Пространство имен: Microsoft.SqlServer.Dts.Runtime.Wrapper
Сборка: Microsoft.SqlServer.DTSRuntimeWrap (в Microsoft.SqlServer.DTSRuntimeWrap.dll)
Синтаксис
'Декларация
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() _
)
'Применение
Dim instance As IDTSLogging100
Dim EventName As String
Dim Computer As String
Dim Operator As String
Dim SourceName As String
Dim SourceID As String
Dim ExecutionID As String
Dim MessageText As String
Dim StartTime As DateTime
Dim EndTime As DateTime
Dim DataCode As Integer
Dim DataBytes As Byte()
instance.Log(EventName, Computer, Operator, _
SourceName, SourceID, ExecutionID, _
MessageText, StartTime, EndTime, _
DataCode, DataBytes)
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
)
void Log(
[InAttribute] String^ EventName,
[InAttribute] String^ Computer,
[InAttribute] String^ Operator,
[InAttribute] String^ SourceName,
[InAttribute] String^ SourceID,
[InAttribute] String^ ExecutionID,
[InAttribute] String^ MessageText,
[InAttribute] DateTime StartTime,
[InAttribute] DateTime EndTime,
[InAttribute] int DataCode,
[InAttribute] array<unsigned char>^% DataBytes
)
abstract Log :
EventName:string *
Computer:string *
Operator:string *
SourceName:string *
SourceID:string *
ExecutionID:string *
MessageText:string *
StartTime:DateTime *
EndTime:DateTime *
DataCode:int *
DataBytes:byte[] byref -> unit
function Log(
EventName : String,
Computer : String,
Operator : String,
SourceName : String,
SourceID : String,
ExecutionID : String,
MessageText : String,
StartTime : DateTime,
EndTime : DateTime,
DataCode : int,
DataBytes : byte[]
)
Параметры
- EventName
Тип: System.String
The event calling the log entry.
- Computer
Тип: System.String
The name of local computer.
- Operator
Тип: System.String
The user account.
- SourceName
Тип: System.String
The object that is the source of the event.
- SourceID
Тип: System.String
The identifier of the task.
- ExecutionID
Тип: System.String
The execution ID.
- MessageText
Тип: System.String
The text to write in the log.
- StartTime
Тип: System.DateTime
The start time of the event.
- EndTime
Тип: System.DateTime
The end time of the event.
- DataCode
Тип: System.Int32
Numeric data field.
- DataBytes
Тип: array<System.Byte[]%
A byte array field for binary large objects