DtsConnectionAttribute.ConnectionType Property

Gets or sets the type of the connection manager. This property is required.

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

Syntax

'Declaration
Public Property ConnectionType As String 
    Get 
    Set
'Usage
Dim instance As DtsConnectionAttribute 
Dim value As String 

value = instance.ConnectionType

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

Property Value

Type: System.String
A String that describes the type of the connection manager.

Examples

The following example shows a class that implements this attribute.

  [DtsConnection(DisplayName = "MyConnectionManager",
    Description = "Custom Connection Manager for Testing",
    IconResource = "MyConnectionManager.MyConnectionMgrIcon.ico",
    UITypeName = "MyNamespace.MyConnectionManagerClassName," +
    "MyAssemblyName,Version=1.00.000.00,Culture=neutral,PublicKeyToken=")]
public class MyConnnectionMgr : ConnectionManagerBase
{
}
<DtsConnection(DisplayName:="MyConnectionManager", _
  Description:="Custom Connection Manager for Testing", _
  IconResource:="MyConnectionManager.MyConnectionMgrIcon.ico", _
  UITypeName:="MyNamespace.MyConnectionManagerClassName,MyAssemblyName," & _
  "Version=1.00.000.00,Culture=neutral,PublicKeyToken=")> _
Public Class MyConnnectionMgr
     Inherits ConnectionManagerBase
End Class

See Also

Reference

DtsConnectionAttribute Class

Microsoft.SqlServer.Dts.Runtime Namespace