Export (0) Print
Expand All

LocalizedNameAttribute Class

Provides the localized name of an extension.

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)

[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

  NameDescription
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

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft