DtsConnectionAttribute.IconResource Özelliği
Alır veya Bağlantı Yöneticisi nesnesi ile ilişkili simgeyi ayarlar.
Ad Alanı: Microsoft.SqlServer.Dts.Runtime
Derleme: Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)
Sözdizimi
'Bildirim
Public Property IconResource As String
Get
Set
'Kullanım
Dim instance As DtsConnectionAttribute
Dim value As String
value = instance.IconResource
instance.IconResource = value
public string IconResource { get; set; }
public:
property String^ IconResource {
String^ get ();
void set (String^ value);
}
member IconResource : string with get, set
function get IconResource () : String
function set IconResource (value : String)
Özellik Değeri
Tür: System.String
A dize , Bağlantı Yöneticisi'nin simgesi kaynak tanımlar.
Açıklamalar
Bu seçenek belirtildiğinde, bu özellik gösterilen simgeyi tanımlar Business Intelligence Development Studio Bağlantı Yöneticisi görüntülendiğinde.
Dize, derleme adı ve simge dosyasının adını içermelidir.Bir kaynak olarak kullanarak bir derlemede simge dosyası gömmek için Visual Studio 2008, küme simge dosyasının Eylem oluşturmak için öznitelik Katıştırılmış kaynak.
Örnekler
Aşağıdaki örnek bir simge sağlayan bir Bağlantı Yöneticisi sınıf gösterir kaynak.Bu örnekte, simge dosyası adlı MyConnectionMgrIcon.ico, ve derleme adı MyConnectionManager.
using system;
using Microsoft.SqlServer.Dts.Runtime;
namespace Microsoft.SqlServer.SSIS.Samples
{
[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=<value>")]
{
}
}
Imports system
Imports Microsoft.SqlServer.Dts.Runtime
<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 MyConnectionManager
Inherits ConnectionManagerBase
End Class