DtsConnectionAttribute.ConnectionType 属性

定义

获取或设置连接管理器的类型。 此属性是必需项。

public:
 property System::String ^ ConnectionType { System::String ^ get(); void set(System::String ^ value); };
public string ConnectionType { get; set; }
member this.ConnectionType : string with get, set
Public Property ConnectionType As String

属性值

描述连接管理器类型的字符串。

示例

以下示例演示一个实现此属性的类。

  [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  

适用于