Classe DtsConnectionAttribute

Supplies design time information about a ConnectionManager object.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Dts.Runtime
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := False, AllowMultiple := False)> _
Public NotInheritable Class DtsConnectionAttribute _
    Inherits DtsLocalizableAttribute
'Utilisation
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

Le type DtsConnectionAttribute expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique DtsConnectionAttribute Initializes a new instance of the DtsConnectionAttribute class.

Haut de la page

Propriétés

  Nom Description
Propriété publique ConnectionContact Gets or sets a String that contains the contact information for the connection manager.
Propriété publique ConnectionType Gets or sets the type of the connection manager. This property is required.
Propriété publique Description Infrastructure. (hérité de DtsLocalizableAttribute.)
Propriété publique DisplayName Infrastructure. (hérité de DtsLocalizableAttribute.)
Propriété publique IconResource Gets or sets the icon associated with the connection manager object.
Propriété publique LocalizationType Infrastructure. (hérité de DtsLocalizableAttribute.)
Propriété publique TypeId (hérité de Attribute.)
Propriété publique UITypeName Specifies the qualified name of the assembly that implements the user interface of the connection manager.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Attribute.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Attribute.)
Méthode publique GetType (hérité de Object.)
Méthode publique IsDefaultAttribute (hérité de Attribute.)
Méthode publique Match (hérité de Attribute.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée _Attribute. . :: . .GetIDsOfNames (hérité de Attribute.)
Implémentation d'interface expliciteMéthode privée _Attribute. . :: . .GetTypeInfo (hérité de Attribute.)
Implémentation d'interface expliciteMéthode privée _Attribute. . :: . .GetTypeInfoCount (hérité de Attribute.)
Implémentation d'interface expliciteMéthode privée _Attribute. . :: . .Invoke (hérité de Attribute.)

Haut de la page

Notes

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.

Exemples

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.