LocalizedNameAttribute 类
Provides the localized name of an extension.
继承层次结构
System.Object
System.Attribute
Microsoft.ReportingServices.Interfaces.LocalizedNameAttribute
命名空间: Microsoft.ReportingServices.Interfaces
程序集: Microsoft.ReportingServices.SharePoint.UI.WebParts(在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
Microsoft.ReportingServices.Interfaces(在 Microsoft.ReportingServices.Interfaces.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. |
页首
方法
名称 | 说明 | |
---|---|---|
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) 成员都是线程安全的。不保证所有实例成员都是线程安全的。