언어

DtsPipelineComponentAttribute.IconResource 속성

정의

툴박스 내 컴포넌트를 나타내는 아이콘을 받거나 설정합니다.

public:
 property System::String ^ IconResource { System::String ^ get(); void set(System::String ^ value); };
public string IconResource { get; set; }
member this.IconResource : string with get, set
Public Property IconResource As String

속성 값

툴박스 내 구성 요소를 나타내는 아이콘 자원을 식별하는 문자열입니다.

예제

다음 예시는 아이콘 자원을 제공하는 컴포넌트 클래스를 보여줍니다.

using System;  
using Microsoft.SqlServer.Dts.Pipeline;  
namespace DtsDocumentation  
{  
   [DtsPipelineComponent(DisplayName="MyComponent",IconResource="DtsDocumentation.MyComponentIcon.ico")]  
   public class MyComponent : PipelineComponent  
   {  
   }  
}  
Imports System   
Imports Microsoft.SqlServer.Dts.Pipeline   
Namespace DtsDocumentation   

 <DtsPipelineComponent(DisplayName="MyComponent", IconResource="DtsDocumentation.MyComponentIcon.ico")> _   
 Public Class MyComponent   
 Inherits PipelineComponent   
 End Class   
End Namespace  

설명

이 속성은 컴포넌트가 data flow에 추가될 때 Data Flow 툴박스와 data flow 탭의 디자인 표면에 표시되는 아이콘을 제어합니다.

Data Flow 툴박스는 16x16, 16색 이미지 타입을 사용하며, data flow 탭의 디자인 표면은 32x32, 16색 이미지 타입을 사용합니다. 두 가지 모두 Microsoft Visual Studio로 만든 아이콘의 기본 이미지 유형입니다.

아이콘 자원을 식별하는 문자열 형식은 점표기법으로, 어셈블리의 루트 네임스페이스 이름 뒤에 마침표가 붙은 뒤, 아이콘 파일 이름으로 구성됩니다.

Visual Studio를 사용해 어셈블리에 아이콘 파일을 리소스로 임베드하려면 새 아이콘을 생성한 후, Visual Studio 속성 창에서 아이콘 파일의 Build Action 속성을 Embedded Resource로 설정하세요.

적용 대상