Udostępnij przez


DtsLogProviderAttribute Constructor

Initializes a new instance of the DtsLogProviderAttribute class.

Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntax

'Deklaracja
Public Sub New
public DtsLogProviderAttribute ()
public:
DtsLogProviderAttribute ()
public DtsLogProviderAttribute ()
public function DtsLogProviderAttribute ()

Remarks

The default constructor initializes any fields to their default values.

Example

The following example shows a class implementing this attribute.

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

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.