次の方法で共有


LocalizedNameAttribute クラス

定義

拡張機能のローカライズされた名前を提供します。

public ref class LocalizedNameAttribute : Attribute
public class LocalizedNameAttribute : Attribute
type LocalizedNameAttribute = class
    inherit Attribute
Public Class LocalizedNameAttribute
Inherits Attribute
継承
LocalizedNameAttribute

次のコード例では、拡張機能クラスに設定されている LocalizedNameAttribute を示します。

[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

{

...

}

注釈

LocalizedNameAttribute クラスを使用すると、呼び出し元は拡張機能を読み込むことなくローカライズされた拡張機能名を判断できます。

メモ 拡張機能に、ユーザーの言語に依存する名前を指定するには、メソッドをオーバーライドする GetLocalizedString 必要があります。

コンストラクター

LocalizedNameAttribute()

LocalizedNameAttribute クラスの新しいインスタンスを初期化します。

LocalizedNameAttribute(String)

LocalizedNameAttribute クラスの新しいインスタンスを初期化します。

プロパティ

Name

拡張機能のローカライズされた名前を取得します。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと同じかどうかを示します。

GetHashCode()

オブジェクトの一意のハッシュ コードを返します。

GetLocalizedString(String)

拡張機能のローカライズされた正しい名前を返します。

適用対象