Share via


LogProviderHostClass.Log 메서드

이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.

Writes the log entry.

네임스페이스:  Microsoft.SqlServer.Dts.Runtime.Wrapper
어셈블리:  Microsoft.SqlServer.DTSRuntimeWrap(Microsoft.SqlServer.DTSRuntimeWrap.dll)

구문

‘선언
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() _
)
‘사용 방법
Dim instance As LogProviderHostClass 
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)
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
)
public:
virtual 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  
override 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
public 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.
  • SourceName
    유형: System.String
    The object that is the source of the event.
  • ExecutionID
    유형: System.String
    The identifier of the specific execution.
  • MessageText
    유형: System.String
    The text to write in the log.
  • DataBytes
    유형: array<System.Byte[]%
    A byte array field for binary large objects (BLOBs).

구현

IDTSLogging100.Log(String, String, String, String, String, String, String, DateTime, DateTime, Int32, array<Byte[]%)

참고 항목

참조

LogProviderHostClass 클래스

Microsoft.SqlServer.Dts.Runtime.Wrapper 네임스페이스