다음을 통해 공유


LocalizedNameAttribute Class

Provides the localized name of an extension.

네임스페이스: Microsoft.ReportingServices.Interfaces
어셈블리: Microsoft.ReportingServices.Interfaces (in 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

주의

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.

Inheritance Hierarchy

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

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

{

...

}

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

LocalizedNameAttribute Members
Microsoft.ReportingServices.Interfaces Namespace

관련 자료

사용자 지정 보고서 항목 예제