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
Public method LocalizedNameAttribute() Initializes a new instance of the LocalizedNameAttribute class.
Public method LocalizedNameAttribute(String) Initializes a new instance of the LocalizedNameAttribute class.

Top

Properties

  Name Description
Public property Name Gets the localized name of the extension.
Public property TypeId (Inherited from Attribute.)

Top

Methods

  Name Description
Public method Equals Determines if the object supplied is the same as the current object. (Overrides Attribute.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns a unique hash code for the object. (Overrides Attribute.GetHashCode().)
Protected method GetLocalizedString Returns the correct localized extension name.
Public method GetType (Inherited from Object.)
Public method IsDefaultAttribute (Inherited from Attribute.)
Public method Match (Inherited from Attribute.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method _Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method _Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method _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.