Freigeben über


LocalizedNameAttribute-Klasse

Provides the localized name of an extension.

Vererbungshierarchie

System. . :: . .Object
  System. . :: . .Attribute
    Microsoft.ReportingServices.Interfaces..::..LocalizedNameAttribute

Namespace:  Microsoft.ReportingServices.Interfaces
Assemblys:   Microsoft.ReportingServices.SharePoint.UI.WebParts (in Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (in Microsoft.ReportingServices.Interfaces.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.All)> _
Public Class LocalizedNameAttribute _
    Inherits Attribute
'Usage
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

Der LocalizedNameAttribute-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode LocalizedNameAttribute() () () () Initializes a new instance of the LocalizedNameAttribute class.
Öffentliche Methode LocalizedNameAttribute(String) Initializes a new instance of the LocalizedNameAttribute class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Name Gets the localized name of the extension.
Öffentliche Eigenschaft TypeId (Geerbt von Attribute.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals Determines if the object supplied is the same as the current object. (Überschreibt Attribute. . :: . .Equals(Object).)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode Returns a unique hash code for the object. (Überschreibt Attribute. . :: . .GetHashCode() () () ().)
Geschützte Methode GetLocalizedString Returns the correct localized extension name.
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode IsDefaultAttribute (Geerbt von Attribute.)
Öffentliche Methode Match (Geerbt von Attribute.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode _Attribute. . :: . .GetIDsOfNames (Geerbt von Attribute.)
Explizite SchnittstellenimplementierungPrivate Methode _Attribute. . :: . .GetTypeInfo (Geerbt von Attribute.)
Explizite SchnittstellenimplementierungPrivate Methode _Attribute. . :: . .GetTypeInfoCount (Geerbt von Attribute.)
Explizite SchnittstellenimplementierungPrivate Methode _Attribute. . :: . .Invoke (Geerbt von Attribute.)

Zum Anfang

Hinweise

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.

Beispiele

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

{

...

}

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.