DtsLocalizableAttribute Constructor
Collapse the table of content
Expand the table of content

DtsLocalizableAttribute Constructor (String, String)

 

Initializes a new instance of the DtsLocalizableAttribute class.

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

protected DtsLocalizableAttribute(
	string localizedDisplayNameProperty,
	string localizedDescriptionProperty
)

Parameters

localizedDisplayNameProperty
Type: System.String

The name of the property used to look up the DisplayName property in the resource class.

localizedDescriptionProperty
Type: System.String

The name of the property used to look up the Description property in the resource class.

When using the DtsPipelineComponentAttribute, the values of the localizedDisplayNameProperty and localizedDescriptionProperty are always ComponentDisplayName and ComponentDescription. Therefore, the keys in the resource file should be named the same. The DtsLocalizableAttribute class uses the System.Reflection.Type.GetProperty method to retrieve these properties, and then calls the GetValue method to populate them.

Return to top
Show:
© 2016 Microsoft