LocalizablePropertyDescriptionAttribute(Type, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the LocalizablePropertyDescriptionAttribute class using the specified type and property name.
public:
LocalizablePropertyDescriptionAttribute(Type ^ type, System::String ^ propertyName);
public LocalizablePropertyDescriptionAttribute (Type type, string propertyName);
new Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescriptionAttribute : Type * string -> Microsoft.SqlServer.Dts.Runtime.Localization.LocalizablePropertyDescriptionAttribute
Public Sub New (type As Type, propertyName As String)
Parameters
- type
- Type
The type name, where Type is defined by the Type Class in the .NET Framework Class Library. This type contains the property referred to by propertyName
.
- propertyName
- String
The name of property on the type
which returns localized property description.
Examples
The following code example shows a class that implements this attribute.
[LocalizablePropertyDescription(typeof(myObject),"PackageTypeDesc")]
public class MyTask : Task
{
// Your code here.
}
Remarks
The property must be static, and return a String
.