共用方式為


DtsConnectionAttribute.ConnectionType Property

Definition

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

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

Property Value

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  

Applies to