Класс 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 | Инфраструктура. Gets or sets the description of the DtsLocalizableAttribute. (Производный от DtsLocalizableAttribute.) | |
DisplayName | Инфраструктура. Gets or sets the display name of the DtsLocalizableAttribute. (Производный от DtsLocalizableAttribute.) | |
IconResource | Gets or sets the icon associated with the connection manager object. | |
LocalizationType | Инфраструктура. Gets or sets the class that supplies values for the DtsLocalizableAttribute. (Производный от DtsLocalizableAttribute.) | |
TypeId | (Производный от Attribute.) | |
UITypeName | Specifies the qualified name of the assembly that implements the user interface of the connection manager. |
В начало
Методы
Имя | Описание | |
---|---|---|
Equals | (Производный от Attribute.) | |
GetHashCode | (Производный от Attribute.) | |
GetType | (Производный от Object.) | |
IsDefaultAttribute | (Производный от Attribute.) | |
Match | (Производный от Attribute.) | |
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 SQL Server Data Tools (SSDT).
Примеры
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
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.