Поделиться через


Метод IDTSComponentMetaData100.PostLogMessage

Writes an entry in a package log.

Пространство имен:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Сборка:  Microsoft.SqlServer.DTSPipelineWrap (в Microsoft.SqlServer.DTSPipelineWrap.dll)

Синтаксис

'Декларация
Sub PostLogMessage ( _
    bstrEventName As String, _
    bstrSourceName As String, _
    bstrMessageText As String, _
    dateStartTime As DateTime, _
    dateEndTime As DateTime, _
    lDataCode As Integer, _
    ByRef psaDataBytes As Byte() _
)
'Применение
Dim instance As IDTSComponentMetaData100 
Dim bstrEventName As String 
Dim bstrSourceName As String 
Dim bstrMessageText As String 
Dim dateStartTime As DateTime 
Dim dateEndTime As DateTime 
Dim lDataCode As Integer 
Dim psaDataBytes As Byte()

instance.PostLogMessage(bstrEventName, _
    bstrSourceName, bstrMessageText, _
    dateStartTime, dateEndTime, lDataCode, _
    psaDataBytes)
void PostLogMessage(
    string bstrEventName,
    string bstrSourceName,
    string bstrMessageText,
    DateTime dateStartTime,
    DateTime dateEndTime,
    int lDataCode,
    ref byte[] psaDataBytes
)
void PostLogMessage(
    [InAttribute] String^ bstrEventName, 
    [InAttribute] String^ bstrSourceName, 
    [InAttribute] String^ bstrMessageText, 
    [InAttribute] DateTime dateStartTime, 
    [InAttribute] DateTime dateEndTime, 
    [InAttribute] int lDataCode, 
    [InAttribute] array<unsigned char>^% psaDataBytes
)
abstract PostLogMessage : 
        bstrEventName:string * 
        bstrSourceName:string * 
        bstrMessageText:string * 
        dateStartTime:DateTime * 
        dateEndTime:DateTime * 
        lDataCode:int * 
        psaDataBytes:byte[] byref -> unit
function PostLogMessage(
    bstrEventName : String, 
    bstrSourceName : String, 
    bstrMessageText : String, 
    dateStartTime : DateTime, 
    dateEndTime : DateTime, 
    lDataCode : int, 
    psaDataBytes : byte[]
)

Параметры

  • bstrSourceName
    Тип: System.String
    The name of the component that creates the log entry.
  • bstrMessageText
    Тип: System.String
    The message included in the log text.
  • lDataCode
    Тип: System.Int32
    The data code of the log entry.
  • psaDataBytes
    Тип: array<System.Byte[]%
    An array of bytes included with the log entry.

Замечания

This method is used to write entries into the package execution log.

См. также

Справочник

IDTSComponentMetaData100 Интерфейс

Пространство имен Microsoft.SqlServer.Dts.Pipeline.Wrapper