LocalizablePropertyDescriptionAttribute Constructor
Initializes a new instance of the LocalizablePropertyDescriptionAttribute class using the specified type and property name.
命名空間: Microsoft.SqlServer.Dts.Runtime.Localization
組件: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
語法
'宣告
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
)
參數
- 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.
備註
The property must be static, and return a String.
範例
The following code example shows a class that implements this attribute.
[LocalizablePropertyDescription(typeof(myObject),"PackageTypeDesc")]
public class MyTask : Task
{
// Your code here.
}
平台
開發平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
目標平台
如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。
請參閱
參考
LocalizablePropertyDescriptionAttribute Class
LocalizablePropertyDescriptionAttribute Members
Microsoft.SqlServer.Dts.Runtime.Localization Namespace