DtsLogProviderAttribute Constructor

Initializes a new instance of the DtsLogProviderAttribute class.

命名空间: Microsoft.SqlServer.Dts.Runtime
程序集: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

语法

声明
Public Sub New
public DtsLogProviderAttribute ()
public:
DtsLogProviderAttribute ()
public DtsLogProviderAttribute ()
public function DtsLogProviderAttribute ()

备注

已更新的示例代码:2007 年 9 月 15 日

示例

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

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

DtsLogProviderAttribute Class
DtsLogProviderAttribute Members
Microsoft.SqlServer.Dts.Runtime Namespace