LocalizedNameAttribute 类

Provides the localized name of an extension.

继承层次结构

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

命名空间:  Microsoft.ReportingServices.Interfaces
程序集:   Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.dll 中)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)

语法

声明
<AttributeUsageAttribute(AttributeTargets.All)> _
Public Class LocalizedNameAttribute _
    Inherits Attribute
用法
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

LocalizedNameAttribute 类型公开以下成员。

构造函数

  名称 说明
公共方法 LocalizedNameAttribute() Initializes a new instance of the LocalizedNameAttribute class.
公共方法 LocalizedNameAttribute(String) Initializes a new instance of the LocalizedNameAttribute class.

页首

属性

  名称 说明
公共属性 Name Gets the localized name of the extension.
公共属性 TypeId (从 Attribute 继承。)

页首

方法

  名称 说明
公共方法 Equals Determines if the object supplied is the same as the current object. (覆盖 Attribute.Equals(Object)。)
受保护方法 Finalize (从 Object 继承。)
公共方法 GetHashCode Returns a unique hash code for the object. (覆盖 Attribute.GetHashCode()。)
受保护方法 GetLocalizedString Returns the correct localized extension name.
公共方法 GetType (从 Object 继承。)
公共方法 IsDefaultAttribute (从 Attribute 继承。)
公共方法 Match (从 Attribute 继承。)
受保护方法 MemberwiseClone (从 Object 继承。)
公共方法 ToString (从 Object 继承。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 _Attribute.GetIDsOfNames (从 Attribute 继承。)
显式接口实现私有方法 _Attribute.GetTypeInfo (从 Attribute 继承。)
显式接口实现私有方法 _Attribute.GetTypeInfoCount (从 Attribute 继承。)
显式接口实现私有方法 _Attribute.Invoke (从 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:

[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

{

...

}

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.ReportingServices.Interfaces 命名空间

其他资源

Custom Report Item Sample