Condividi tramite


Classe LocalizedNameAttribute

Provides the localized name of an extension.

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.ReportingServices.Interfaces
Assembly:   Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)

Sintassi

'Dichiarazione
<AttributeUsageAttribute(AttributeTargets.All)> _
Public Class LocalizedNameAttribute _
    Inherits Attribute
'Utilizzo
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

Nel tipo LocalizedNameAttribute sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico LocalizedNameAttribute() () () () Initializes a new instance of the LocalizedNameAttribute class.
Metodo pubblico LocalizedNameAttribute(String) Initializes a new instance of the LocalizedNameAttribute class.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Name Gets the localized name of the extension.
Proprietà pubblica TypeId Ereditato da Attribute.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Determines if the object supplied is the same as the current object. Esegue l'override di Attribute. . :: . .Equals(Object).
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Returns a unique hash code for the object. Esegue l'override di Attribute. . :: . .GetHashCode() () () ().
Metodo protetto GetLocalizedString Returns the correct localized extension name.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico IsDefaultAttribute Ereditato da Attribute.
Metodo pubblico Match Ereditato da Attribute.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato _Attribute. . :: . .GetIDsOfNames Ereditato da Attribute.
Implementazione esplicita dell'interfacciaMetodo privato _Attribute. . :: . .GetTypeInfo Ereditato da Attribute.
Implementazione esplicita dell'interfacciaMetodo privato _Attribute. . :: . .GetTypeInfoCount Ereditato da Attribute.
Implementazione esplicita dell'interfacciaMetodo privato _Attribute. . :: . .Invoke Ereditato da Attribute.

In alto

Osservazioni

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.

Esempi

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

{

...

}

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.