语言

DtsLocalizableAttribute(String, String) 构造函数

定义

初始化 DtsLocalizableAttribute 类的新实例。

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)

参数

localizedDisplayNameProperty
String

用来查找 DisplayName 资源类属性的属性名称。

localizedDescriptionProperty
String

用来查找 Description 资源类属性的属性名称。

注解

使用时DtsPipelineComponentAttribute,和localizedDescriptionProperty的localizedDisplayNameProperty值总是ComponentDisplayName和ComponentDescription。 因此,资源文件中的键应命名相同。 类使用 DtsLocalizableAttribute 该 System.Reflection.Type.GetProperty 方法检索这些属性,然后调用 GetValue 该方法填充它们。

适用于