We recommend using Visual Studio 2017

LocalizedNameAttribute Class

Provides the localized name of an extension.


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)

public class LocalizedNameAttribute : Attribute

The LocalizedNameAttribute type exposes the following members.

Public methodLocalizedNameAttribute()Initializes a new instance of the LocalizedNameAttribute class.
Public methodLocalizedNameAttribute(String)Initializes a new instance of the LocalizedNameAttribute class.

Public propertyNameGets the localized name of the extension.
Public propertyTypeId (Inherited from Attribute.)

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.)

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.)

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:


namespace PolygonsCRI



[Editor(typeof(CustomEditor), typeof(ComponentEditor))]


// 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


// 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.

Community Additions