DtsLogProviderAttribute.LogProviderType 属性

定义

获取或设置日志提供程序的类型。 此属性是必需项。

public:
 property System::String ^ LogProviderType { System::String ^ get(); void set(System::String ^ value); };
public string LogProviderType { get; set; }
member this.LogProviderType : string with get, set
Public Property LogProviderType As String

属性值

日志提供程序的类型。

示例

以下示例演示了实现此属性并设置的 LogProviderType类。

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  

适用于