Share via


DtsLocalizableAttribute(String, String) Constructor

Definition

Initializes a new instance of the DtsLocalizableAttribute class.

protected:
 DtsLocalizableAttribute(System::String ^ localizedDisplayNameProperty, System::String ^ localizedDescriptionProperty);
protected DtsLocalizableAttribute (string localizedDisplayNameProperty, string localizedDescriptionProperty);
new Microsoft.SqlServer.Dts.Pipeline.Localization.DtsLocalizableAttribute : string * string -> Microsoft.SqlServer.Dts.Pipeline.Localization.DtsLocalizableAttribute
Protected Sub New (localizedDisplayNameProperty As String, localizedDescriptionProperty As String)

Parameters

localizedDisplayNameProperty
String

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

localizedDescriptionProperty
String

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

Remarks

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.

Applies to