DtsPipelineComponentAttribute.IconResource プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ツールボックス内のコンポーネントを表すアイコンを取得するか設定します。
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を使ってアセンブリにアイコンファイルをリソースとして埋め込むには、新しいアイコンを作成し、そのアイコンファイルのBuild Action属性をVisual StudioプロパティウィンドウでEmbedded Resourceに設定します。