Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

LocalizedNameAttribute Class

Provides the localized name of an extension.

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

Namespace:  Microsoft.ReportingServices.Interfaces
Assemblies:   Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
[AttributeUsageAttribute(AttributeTargets.All)]
public class LocalizedNameAttribute : Attribute

The LocalizedNameAttribute type exposes the following members.

  NameDescription
Public methodLocalizedNameAttribute()Initializes a new instance of the LocalizedNameAttribute class.
Public methodLocalizedNameAttribute(String)Initializes a new instance of the LocalizedNameAttribute class.
Top
  NameDescription
Public propertyNameGets the localized name of the extension.
Public propertyTypeId (Inherited from Attribute.)
Top
  NameDescription
Public methodEqualsDetermines if the object supplied is the same as the current object. (Overrides Attribute.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns a unique hash code for the object. (Overrides Attribute.GetHashCode().)
Protected methodGetLocalizedStringReturns the correct localized extension name.
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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.

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

{

...

}

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.