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
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。