Classe LocalizedNameAttribute
Provides the localized name of an extension.
Espace de noms : Microsoft.ReportingServices.Interfaces
Assemblys : Microsoft.ReportingServices.SharePoint.UI.WebParts (dans Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
Microsoft.ReportingServices.Interfaces (dans Microsoft.ReportingServices.Interfaces.dll)
Syntaxe
'Déclaration
<AttributeUsageAttribute(AttributeTargets.All)> _
Public Class LocalizedNameAttribute _
Inherits Attribute
'Utilisation
Dim instance As LocalizedNameAttribute
[AttributeUsageAttribute(AttributeTargets.All)]
public class LocalizedNameAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::All)]
public ref class LocalizedNameAttribute : public Attribute
[<AttributeUsageAttribute(AttributeTargets.All)>]
type LocalizedNameAttribute =
class
inherit Attribute
end
public class LocalizedNameAttribute extends Attribute
Notes
The LocalizedNameAttribute class allows the caller to determine the localized name of the extension without loading the extension.
Note To give the extension a name which is dependent on the user's language, you must override the GetLocalizedString method.
Exemples
The following code snippet shows the LocalizedNameAttribute being set on an extension class:
[C#]
namespace PolygonsCRI
{
[LocalizedName("Polygons")]
[Editor(typeof(CustomEditor), typeof(ComponentEditor))]
[ToolboxBitmap(typeof(PolygonsDesigner),"Polygons.ico")]
// this CRI-specific attribute sets the name of the
// custom report item which is referenced by the config
// files and saved in the report definition language
[CustomReportItem("Polygons")]
// the main class for our CRI design-time component
public class PolygonsDesigner : CustomReportItemDesigner
{
...
}
Hiérarchie d'héritage
System. . :: . .Object
System. . :: . .Attribute
Microsoft.ReportingServices.Interfaces..::..LocalizedNameAttribute
Sécurité des threads
Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.
Voir aussi