ConnectionManager::InnerObject Property
Returns the specific connection type that was created. This property is read-only.
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
public: [BrowsableAttribute(false)] property Object^ InnerObject { virtual Object^ get() sealed; }
Property Value
Type: System::Object^The object that contains the hosted item. This object is cast to the class that matches the connection type. Except for the connections found in Microsoft.SqlServer.Dts.ManagedConnections, these connection objects are native and must be cast to their native class. This is shown by the InnerObject displaying a value of "System.__ComObject" from the code example.
Implements
IDTSObjectHost::InnerObjectThe following code example loads an existing package that has two connections. It iterates through the connection managers in the package and prints out the values for various properties, including the InnerObject.
Sample Output:
The number of connections in the package is: 2
ConnectionString: Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Auto Translate=False;
CreationName: OLEDB
DelayValidation: False
Description:
HostType: ConnectionManager
ID: {3427BFE1-F10C-4B7E-8E70-E8D9DC7DDBA3}
InnerObject: System.__ComObject
Name: localhost.AdventureWorks
ProtectionLevel: EncryptSensitiveWithUserKey
SupportsDTCTransactions: True
ConnectionString: C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\results.txt
CreationName: FLATFILE
DelayValidation: False
Description:
HostType: ConnectionManager
ID: {48B66F8D-7DFE-4D85-91C7-0999655484B2}
InnerObject: System.__ComObject
Name: Transaction Summary by Product1
ProtectionLevel: EncryptSensitiveWithUserKey
SupportsDTCTransactions: False