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) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。