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 | |
---|---|---|
![]() |
LocalizedNameAttribute() () () () | Initializes a new instance of the LocalizedNameAttribute class. |
![]() |
LocalizedNameAttribute(String) | Initializes a new instance of the LocalizedNameAttribute class. |
In alto
Proprietà
Nome | Descrizione | |
---|---|---|
![]() |
Name | Gets the localized name of the extension. |
![]() |
TypeId | Ereditato da Attribute. |
In alto
Metodi
Nome | Descrizione | |
---|---|---|
![]() |
Equals | Determines if the object supplied is the same as the current object. Esegue l'override di Attribute. . :: . .Equals(Object). |
![]() |
Finalize | Ereditato da Object. |
![]() |
GetHashCode | Returns a unique hash code for the object. Esegue l'override di Attribute. . :: . .GetHashCode() () () (). |
![]() |
GetLocalizedString | Returns the correct localized extension name. |
![]() |
GetType | Ereditato da Object. |
![]() |
IsDefaultAttribute | Ereditato da Attribute. |
![]() |
Match | Ereditato da Attribute. |
![]() |
MemberwiseClone | Ereditato da Object. |
![]() |
ToString | Ereditato da Object. |
In alto
Implementazioni esplicite dell'interfaccia
Nome | Descrizione | |
---|---|---|
![]() ![]() |
_Attribute. . :: . .GetIDsOfNames | Ereditato da Attribute. |
![]() ![]() |
_Attribute. . :: . .GetTypeInfo | Ereditato da Attribute. |
![]() ![]() |
_Attribute. . :: . .GetTypeInfoCount | Ereditato da Attribute. |
![]() ![]() |
_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.
Vedere anche