Partager via


Classe LocalizedNameAttribute

Provides the localized name of an extension.

Hiérarchie d'héritage

System.Object
  System.Attribute
    Microsoft.ReportingServices.Interfaces.LocalizedNameAttribute

Espace de noms :  Microsoft.ReportingServices.Interfaces
Assemblys :   Microsoft.ReportingServices.Interfaces (en Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (en Microsoft.ReportingServices.SharePoint.UI.WebParts.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

Le type LocalizedNameAttribute expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique LocalizedNameAttribute() Initializes a new instance of the LocalizedNameAttribute class.
Méthode publique LocalizedNameAttribute(String) Initializes a new instance of the LocalizedNameAttribute class.

Haut de la page

Propriétés

  Nom Description
Propriété publique Name Gets the localized name of the extension.
Propriété publique TypeId (hérité de Attribute.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals Determines if the object supplied is the same as the current object. (remplace Attribute.Equals(Object).)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode Returns a unique hash code for the object. (remplace Attribute.GetHashCode().)
Méthode protégée GetLocalizedString Returns the correct localized extension name.
Méthode publique GetType (hérité de Object.)
Méthode publique IsDefaultAttribute (hérité de Attribute.)
Méthode publique Match (hérité de Attribute.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée _Attribute.GetIDsOfNames (hérité de Attribute.)
Implémentation d'interface expliciteMéthode privée _Attribute.GetTypeInfo (hérité de Attribute.)
Implémentation d'interface expliciteMéthode privée _Attribute.GetTypeInfoCount (hérité de Attribute.)
Implémentation d'interface expliciteMéthode privée _Attribute.Invoke (hérité de Attribute.)

Haut de la page

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

{

...

}

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.ReportingServices.Interfaces

Autres ressources

Custom Report Item Sample