Export (0) Print
Expand All

LogProvider.ID Property

Gets the ID of the LogProvider. This property is read-only.

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

public:
virtual property String^ ID {
	String^ get () sealed;
}
/** @property */
public final String get_ID ()

public final function get ID () : String

Property Value

Returns the integer ID of the LogProvider.

This property is read-only and is assigned by the runtime when the LogProvider is added to the package. This ID property is one of the strings that is used to add the LogProvider to the LogProviders collection when using the Add method. The ID is also referred to as the ClassID. You can also use the CreationName, also referred to as the ProgID, to add a log provider to the collection. For a list of the ProgIDs and ClassIDs assigned to the log providers, see Add.


The following code example loads a package for which logging has been enabled. After loading the package, the LogProviders collection is created, and each log provider in the collection is enumerated over, printing the values for each property, including the GUID or ClassID, ID.

No code example is currently available or this language may not be supported.

Sample Output:

ConfigString:

CreationName DTS.LogProviderTextFile.1

DelayValidation False

Description Writes log entries for events to a CSV file

HostType LogProvider

ID {1E107E39-DB79-4F02-B8A7-61D88F2DEF63}

InnerObject System.__ComObject

Name SSIS log provider for Text files

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