LocalizedNameAttribute Class

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

名前空間: Microsoft.ReportingServices.Interfaces
アセンブリ: Microsoft.ReportingServices.Interfaces (microsoft.reportingservices.interfaces.dll 内)

構文

'宣言
<AttributeUsageAttribute(AttributeTargets.All)> _
Public Class LocalizedNameAttribute
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.All)] 
public class LocalizedNameAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::All)] 
public ref class LocalizedNameAttribute : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.All) */ 
public class LocalizedNameAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.All) 
public class LocalizedNameAttribute extends Attribute

解説

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

   ユーザーの言語に対応した拡張機能名を設定するには、GetLocalizedString メソッドをオーバーライドする必要があります。

継承階層

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

使用例

次のコード例では、拡張機能クラスに設定されている 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

{

...

}

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

LocalizedNameAttribute Members
Microsoft.ReportingServices.Interfaces Namespace

その他の技術情報

カスタム レポート アイテムのサンプル