LocalizedNameAttribute Class
Provides the localized name of an extension.
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.ReportingServices.Interfaces.LocalizedNameAttribute
Namespace: Microsoft.ReportingServices.Interfaces
Assemblies: Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.All)> _
Public Class LocalizedNameAttribute _
Inherits Attribute
'Usage
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
The LocalizedNameAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
LocalizedNameAttribute() | Initializes a new instance of the LocalizedNameAttribute class. | |
LocalizedNameAttribute(String) | Initializes a new instance of the LocalizedNameAttribute class. |
Top
Properties
Name | Description | |
---|---|---|
Name | Gets the localized name of the extension. | |
TypeId | (Inherited from Attribute.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines if the object supplied is the same as the current object. (Overrides Attribute.Equals(Object).) | |
Finalize | (Inherited from Object.) | |
GetHashCode | Returns a unique hash code for the object. (Overrides Attribute.GetHashCode().) | |
GetLocalizedString | Returns the correct localized extension name. | |
GetType | (Inherited from Object.) | |
IsDefaultAttribute | (Inherited from Attribute.) | |
Match | (Inherited from Attribute.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames | (Inherited from Attribute.) | |
_Attribute.GetTypeInfo | (Inherited from Attribute.) | |
_Attribute.GetTypeInfoCount | (Inherited from Attribute.) | |
_Attribute.Invoke | (Inherited from Attribute.) |
Top
Remarks
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.
Examples
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
{
...
}
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also