Partager via


LocalizablePropertyDescriptionAttribute Constructor

Initializes a new instance of the LocalizablePropertyDescriptionAttribute class using the specified type and property name.

Espace de noms: Microsoft.SqlServer.Dts.Runtime.Localization
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntaxe

'Déclaration
Public Sub New ( _
    type As Type, _
    propertyName As String _
)
public LocalizablePropertyDescriptionAttribute (
    Type type,
    string propertyName
)
public:
LocalizablePropertyDescriptionAttribute (
    Type^ type, 
    String^ propertyName
)
public LocalizablePropertyDescriptionAttribute (
    Type type, 
    String propertyName
)
public function LocalizablePropertyDescriptionAttribute (
    type : Type, 
    propertyName : String
)

Paramètres

  • 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
    The name of property on the type which returns localized property description.

Notes

The property must be static, and return a String.

Exemple

The following code example shows a class that implements this attribute.

[LocalizablePropertyDescription(typeof(myObject),"PackageTypeDesc")]
public class MyTask : Task
{
     // Your code here.
}

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

LocalizablePropertyDescriptionAttribute Class
LocalizablePropertyDescriptionAttribute Members
Microsoft.SqlServer.Dts.Runtime.Localization Namespace