Compartir a través de


Clase DtsConnectionAttribute

Supplies design time information about a ConnectionManager object.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Dts.Runtime
Ensamblado:  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Sintaxis

'Declaración
<AttributeUsageAttribute(AttributeTargets.Class, Inherited := False, AllowMultiple := False)> _
Public NotInheritable Class DtsConnectionAttribute _
    Inherits DtsLocalizableAttribute
'Uso
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

El tipo DtsConnectionAttribute expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público DtsConnectionAttribute Initializes a new instance of the DtsConnectionAttribute class.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública ConnectionContact Gets or sets a String that contains the contact information for the connection manager.
Propiedad pública ConnectionType Gets or sets the type of the connection manager. This property is required.
Propiedad pública Description Infraestructura. (Se hereda de DtsLocalizableAttribute.)
Propiedad pública DisplayName Infraestructura. (Se hereda de DtsLocalizableAttribute.)
Propiedad pública IconResource Gets or sets the icon associated with the connection manager object.
Propiedad pública LocalizationType Infraestructura. (Se hereda de DtsLocalizableAttribute.)
Propiedad pública TypeId (Se hereda de Attribute.)
Propiedad pública UITypeName Specifies the qualified name of the assembly that implements the user interface of the connection manager.

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Attribute.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Attribute.)
Método público GetType (Se hereda de Object.)
Método público IsDefaultAttribute (Se hereda de Attribute.)
Método público Match (Se hereda de Attribute.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de Object.)

Arriba

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado _Attribute. . :: . .GetIDsOfNames (Se hereda de Attribute.)
Implementación de interfaces explícitasMétodo privado _Attribute. . :: . .GetTypeInfo (Se hereda de Attribute.)
Implementación de interfaces explícitasMétodo privado _Attribute. . :: . .GetTypeInfoCount (Se hereda de Attribute.)
Implementación de interfaces explícitasMétodo privado _Attribute. . :: . .Invoke (Se hereda de Attribute.)

Arriba

Comentarios

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.

Ejemplos

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

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.