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 ,和的值 localizedDisplayNameProperty localizedDescriptionProperty 始终为 ComponentDisplayNameComponentDescription 。 因此,资源文件中的密钥应命名为相同的名称。 DtsLocalizableAttribute类使用 System.Reflection.Type.GetProperty 方法检索这些属性,然后调用 GetValue 方法来填充这些属性。

适用于