共用方式為


DtsConnectionAttribute 類別

Supplies design time information about a ConnectionManager object.

繼承階層

System. . :: . .Object
  System. . :: . .Attribute
    Microsoft.SqlServer.Dts.Runtime.Localization. . :: . .DtsLocalizableAttribute
      Microsoft.SqlServer.Dts.Runtime..::..DtsConnectionAttribute

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := False, AllowMultiple := False)> _
Public NotInheritable Class DtsConnectionAttribute _
    Inherits DtsLocalizableAttribute
'用途
Dim instance As DtsConnectionAttribute
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class DtsConnectionAttribute : DtsLocalizableAttribute
[AttributeUsageAttribute(AttributeTargets::Class, Inherited = false, AllowMultiple = false)]
public ref class DtsConnectionAttribute sealed : public DtsLocalizableAttribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, Inherited = false, AllowMultiple = false)>]
type DtsConnectionAttribute =  
    class
        inherit DtsLocalizableAttribute
    end
public final class DtsConnectionAttribute extends DtsLocalizableAttribute

DtsConnectionAttribute 型別公開下列成員。

建構函式

  名稱 說明
公用方法 DtsConnectionAttribute Initializes a new instance of the DtsConnectionAttribute class.

上層

屬性

  名稱 說明
公用屬性 ConnectionContact Gets or sets a String that contains the contact information for the connection manager.
公用屬性 ConnectionType Gets or sets the type of the connection manager. This property is required.
公用屬性 Description 基礎結構。 (繼承自 DtsLocalizableAttribute。)
公用屬性 DisplayName 基礎結構。 (繼承自 DtsLocalizableAttribute。)
公用屬性 IconResource Gets or sets the icon associated with the connection manager object.
公用屬性 LocalizationType 基礎結構。 (繼承自 DtsLocalizableAttribute。)
公用屬性 TypeId (繼承自 Attribute。)
公用屬性 UITypeName Specifies the qualified name of the assembly that implements the user interface of the connection manager.

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Attribute。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Attribute。)
公用方法 GetType (繼承自 Object。)
公用方法 IsDefaultAttribute (繼承自 Attribute。)
公用方法 Match (繼承自 Attribute。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

明確 繼承 實作

  名稱 說明
明確介面實作私用方法 _Attribute. . :: . .GetIDsOfNames (繼承自 Attribute。)
明確介面實作私用方法 _Attribute. . :: . .GetTypeInfo (繼承自 Attribute。)
明確介面實作私用方法 _Attribute. . :: . .GetTypeInfoCount (繼承自 Attribute。)
明確介面實作私用方法 _Attribute. . :: . .Invoke (繼承自 Attribute。)

上層

備註

This attribute is applied to managed Integration Services connection managers that are derived from ConnectionManagerBase. The attribute identifies a class as a managed connection manager and provides information through its properties that control how the SSIS Designer displays and interacts with the object.

The DisplayName and ConnectionType properties are required properties. The DisplayName is displayed in the list of connection managers in Business Intelligence Development Studio.

範例

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.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

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。