Freigeben über


DescriptionAttribute-Klasse

Legt die Beschreibung für eine Assembly (Anwendung), Komponente, Methode oder Schnittstelle fest. Diese Klasse kann nicht vererbt werden.

Namespace: System.EnterpriseServices
Assembly: System.EnterpriseServices (in system.enterpriseservices.dll)

Syntax

'Declaration
<ComVisibleAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Assembly Or AttributeTargets.Class Or AttributeTargets.Method Or AttributeTargets.Interface, Inherited:=True)> _
Public NotInheritable Class DescriptionAttribute
    Inherits Attribute
'Usage
Dim instance As DescriptionAttribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Interface, Inherited=true)] 
public sealed class DescriptionAttribute : Attribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets::Assembly|AttributeTargets::Class|AttributeTargets::Method|AttributeTargets::Interface, Inherited=true)] 
public ref class DescriptionAttribute sealed : public Attribute
/** @attribute ComVisibleAttribute(false) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Interface, Inherited=true) */ 
public final class DescriptionAttribute extends Attribute
ComVisibleAttribute(false) 
AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Interface, Inherited=true) 
public final class DescriptionAttribute extends Attribute

Hinweise

Weitere Informationen über das Verwenden von Attributen finden Sie unter Erweitern von Metadaten mithilfe von Attributen.

Beispiel

Im folgenden Codebeispiel wird die Verwendung dieses Attributs veranschaulicht.

<Assembly: Description("A system for ensuring that the correct account balance is stored after a transaction.")> 
[assembly: Description("A system for ensuring that the correct account balance is stored after a transaction.")]
[assembly: Description("A system for ensuring that the correct account "
                       "balance is stored after a transaction.")];
/** @assembly Description("A system for ensuring that the correct account "
    + " balance is stored after a transaction.")
 */

Vererbungshierarchie

System.Object
   System.Attribute
    System.EnterpriseServices.DescriptionAttribute

Threadsicherheit

Alle öffentlichen statischen (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Plattformen

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

DescriptionAttribute-Member
System.EnterpriseServices-Namespace