Export (0) Print
Expand All

LogProvider.Properties Property

Returns a DtsProperties collection, which contains a collection of DtsProperty objects.

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

'Declaration
Public ReadOnly Property Properties As DtsProperties
/** @property */
public final DtsProperties get_Properties ()

public final function get Properties () : DtsProperties

Property Value

A DtsProperties collection.

The following example retrieves the Properties of the log provider in the package. The samples package was modified in the designer before loading to log to the SSIS log provider for Text files.

Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
 
Namespace LogProvider_Properties_Test
    Class Program
        Shared  Sub Main(ByVal args() As String)
            ' The package is one of the SSIS Samples.
            Dim mySample As String =  "C:\Program Files\Microsoft SQL Server\90\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx" 
 
            ' Create the Application, and load the sample.
            Dim app As Application =  New Application() 
            Dim pkg As Package =  app.LoadPackage(mySample,Nothing) 
 
            ' Get the LogProviders collection.
            Dim logProvs As LogProviders =  pkg.LogProviders 
 
            ' Get the "SSIS log provider for Text files"
            ' provider from the collection.
            Dim textLogProv As LogProvider =  logProvs("SSIS log provider for Text files") 
 
            ' Get the Properties collection from the Text provider,
            ' and iterate through the Text provider properties,  
            ' printing the property names of the Text provider.
            Dim logProperties As DtsProperties =  textLogProv.Properties 
 
            Dim logProp As DtsProperty
            For Each logProp In logProperties
                Console.WriteLine(logProp.Name)
            Next
 
        End Sub
    End Class
End Namespace

Sample Output:

ConfigString

CreationName

Description

Enabled

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

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

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft