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)

지역화된 올바른 확장 프로그램 이름을 반환합니다.

적용 대상