다음을 통해 공유


DtsLogProviderAttribute.LogProviderType 속성

Gets or sets the type of the log provider. This property is required.

네임스페이스:  Microsoft.SqlServer.Dts.Runtime
어셈블리:  Microsoft.SqlServer.ManagedDTS(Microsoft.SqlServer.ManagedDTS.dll)

구문

‘선언
Public Property LogProviderType As String 
    Get 
    Set
‘사용 방법
Dim instance As DtsLogProviderAttribute 
Dim value As String 

value = instance.LogProviderType

instance.LogProviderType = value
public string LogProviderType { get; set; }
public:
property String^ LogProviderType {
    String^ get ();
    void set (String^ value);
}
member LogProviderType : string with get, set
function get LogProviderType () : String 
function set LogProviderType (value : String)

속성 값

유형: System.String
The type of the log provider.

The following example shows a class implementing this attribute and setting the 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

참고 항목

참조

DtsLogProviderAttribute 클래스

Microsoft.SqlServer.Dts.Runtime 네임스페이스