Log-Methode
Die API unterstützt die .NET Framework-Infrastruktur und ist nicht für eine direkte Verwendung vom Code aus vorgesehen.
For more information, see LogProvider.
Namespace: Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly: Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)
Syntax
'Declaration
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() _
)
'Usage
Dim instance As LogProviderSQLServerClass
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[]
)
Parameter
- EventName
Typ: System. . :: . .String
- Computer
Typ: System. . :: . .String
- Operator
Typ: System. . :: . .String
- SourceName
Typ: System. . :: . .String
- SourceID
Typ: System. . :: . .String
- ExecutionID
Typ: System. . :: . .String
- MessageText
Typ: System. . :: . .String
- StartTime
Typ: System. . :: . .DateTime
- EndTime
Typ: System. . :: . .DateTime
- DataCode
Typ: System. . :: . .Int32
- DataBytes
Typ: array<System. . :: . .Byte> [] () [] []%