言語

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)

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

適用対象