Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Initializes a new instance of the LocalizablePropertyCategoryAttribute class using the specified type and property name.
Espacio de nombres: Microsoft.SqlServer.Dts.Runtime.Localization
Ensamblado: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)
Sintaxis
'Declaración
Public Sub New ( _
type As Type, _
propertyName As String _
)
public LocalizablePropertyCategoryAttribute (
Type type,
string propertyName
)
public:
LocalizablePropertyCategoryAttribute (
Type^ type,
String^ propertyName
)
public LocalizablePropertyCategoryAttribute (
Type type,
String propertyName
)
public function LocalizablePropertyCategoryAttribute (
type : Type,
propertyName : String
)
Parámetros
- type
The type name that contains the property referenced by propertyName.
- propertyName
The name of the property on the type that returns the localized property category.
Notas
The property must be static, and return a String.
Ejemplo
The following code example shows a class that implements this attribute.
public class MyTask : Task
{
[LocalizablePropertyCategory (typeof(LocalizedStrings),"MyGeneralCategory")]
public string MyProperty
{ get; set; }
}
internal class LocalizedStrings
{
public static string MyGeneralCategory
{
get
{
// Return the localized string.
}
}
}
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
LocalizablePropertyCategoryAttribute Class
LocalizablePropertyCategoryAttribute Members
Microsoft.SqlServer.Dts.Runtime.Localization Namespace