Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DtsPipelineComponentAttribute.IconResource Property


Applies To: SQL Server 2016 Preview

Gets or sets the icon used to represent the component in the toolbox.

Namespace:   Microsoft.SqlServer.Dts.Pipeline
Assembly:  Microsoft.SqlServer.PipelineHost (in Microsoft.SqlServer.PipelineHost.dll)

public string IconResource { get; set; }

Property Value

Type: System.String

A string that identifies the icon resource used to represent the component in the toolbox.

This property controls the icons that are shown in the Data Flow toolbox and on the design surface of the data flow tab when the component is added to the data flow.

The Data Flow toolbox uses the 16x16, 16-color image type, while the design surface of the data flow tab uses the 32x32, 16-color image type. Both are default image types for icons created using Microsoft Visual Studio.

The format of the string identifying the icon resource is a dotted notation, consisting of the name of the root namespace for the assembly, followed by a period, then the name of the icon file.

To embed an icon file as a resource in an assembly using Visual Studio, create a new icon, and then set the Build Action attribute of the icon file to Embedded Resource in the Visual Studio Properties window.

Legacy Code Example

The following example shows a component class that provides an icon resource.

using System;
using Microsoft.SqlServer.Dts.Pipeline;
namespace DtsDocumentation
   public class MyComponent : PipelineComponent
Return to top
© 2015 Microsoft