Udostępnij za pośrednictwem


Konstruktor DtsLogProviderAttribute

Inicjuje nowe wystąpienie DtsLogProviderAttribute klasy

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime
Zestaw:  Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)

Składnia

'Deklaracja
Public Sub New
'Użycie

Dim instance As New DtsLogProviderAttribute()
public DtsLogProviderAttribute()
public:
DtsLogProviderAttribute()
new : unit -> DtsLogProviderAttribute
public function DtsLogProviderAttribute()

Przykłady

W poniższym przykładzie przedstawiono klasy wykonania tego atrybut.

using System;
using Microsoft.SqlServer.Dts.Runtime;

namespace Microsoft.Samples.SqlServer.Dts
{
[DtsLogProvider(LogProviderType = "MyLOG", 
  DisplayName = "MyCustomLogProvider ", 
  Description = "Custom Log Provider")]
public class MyCustomLogProvider : LogProviderBase
{
    // Your custom log provider code here.
}
}
Imports System
Imports Microsoft.SqlServer.Dts.Runtime

<DtsLogProvider(LogProviderType:="MyLOG", _
DisplayName:="MyCustomLogProvider ", _
Description:="Custom Log Provider")> _
Public Class MyCustomLogProvider
  Inherits LogProviderBase
  ' Your custom log provider code here.
End Class