Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
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 (en Microsoft.SqlServer.ManagedDTS.dll)
Syntaxe
'Déclaration
Public Sub New ( _
type As Type, _
propertyName As String _
)
'Utilisation
Dim type As Type
Dim propertyName As String
Dim instance As New LocalizablePropertyDescriptionAttribute(type, propertyName)
public LocalizablePropertyDescriptionAttribute(
Type type,
string propertyName
)
public:
LocalizablePropertyDescriptionAttribute(
Type^ type,
String^ propertyName
)
new :
type:Type *
propertyName:string -> LocalizablePropertyDescriptionAttribute
public function LocalizablePropertyDescriptionAttribute(
type : Type,
propertyName : String
)
Paramètres
- type
Type : System.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
Type : System.String
The name of property on the type which returns localized property description.
Notes
The property must be static, and return a String.
Exemples
The following code example shows a class that implements this attribute.
[LocalizablePropertyDescription(typeof(myObject),"PackageTypeDesc")]
public class MyTask : Task
{
// Your code here.
}