LocalizedNameAttribute 클래스

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 네임스페이스

관련 자료

Custom Report Item Sample