Właściwość DtsConnectionAttribute.ConnectionType
Pobiera lub ustawia typ menedżer połączeń.Właściwość ta jest wymagana.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Runtime
Zestaw: Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)
Składnia
'Deklaracja
Public Property ConnectionType As String
Get
Set
'Użycie
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)
Wartość właściwości
Typ: System.String
A ciąg , który opisuje typ menedżer połączeń.
Przykłady
W poniższym przykładzie przedstawiono klasy, która implementuje ten atrybut.
[DtsConnection(DisplayName = "MyConnectionManager",
Description = "Custom Connection Manager for Testing",
IconResource = "MyConnectionManager.MyConnectionMgrIcon.ico",
UITypeName = "MyNamespace.MyConnectionManagerClassName," +
"MyAssemblyName,Version=1.0.0.0,Culture=neutral," +
"PublicKeyToken=<value>")]
public class MyConnnectionMgr : ConnectionManagerBase
{
}
<DtsConnection(DisplayName:="MyConnectionManager", _
Description:="Custom Connection Manager for Testing", _
IconResource:="MyConnectionManager.MyConnectionMgrIcon.ico", _
UITypeName:="MyNamespace.MyConnectionManagerClassName,MyAssemblyName," & _
"Version=1.0.0.0,Culture=neutral,PublicKeyToken=<value>")> _
Public Class MyConnnectionMgr
Inherits ConnectionManagerBase
End Class