LocalizablePropertyDescriptionAttribute(Type, String) Constructor

Definition

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.

Applies to