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,其localizedDescriptionPropertylocalizedDisplayNameProperty始终且ComponentDescription始终ComponentDisplayName。 因此,资源文件中的键应命名为相同。 该 DtsLocalizableAttribute 类使用 System.Reflection.Type.GetProperty 该方法检索这些属性,然后调用 GetValue 该方法来填充它们。

适用于