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 命名空間
.gif)
.gif)
.gif)
.gif)
.gif)