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 ツールボックスでは 16 x 16 色の画像の種類が使用され、データ フロー タブのデザインサーフェイスでは 32 x 32、16 色の画像の種類が使用されます。 どちらも、Microsoft Visual Studio を使用して作成されたアイコンの既定のイメージの種類です。
アイコン リソースを識別する文字列は、アセンブリのルートの名前空間の名前、ピリオド (.)、アイコン ファイル名の順にドット区切り形式で表されます。
Visual Studio を使用してアイコン ファイルをリソースとしてアセンブリに埋め込むには、新しいアイコンを作成し、[Visual Studio のプロパティ] ウィンドウでアイコン ファイルのビルド アクション属性を埋め込みリソースに設定します。