Freigeben über


PropertyDescriptorCollection.Add-Methode

Fügt der Auflistung die angegebene PropertyDescriptor-Klasse hinzu.

Namespace: System.ComponentModel
Assembly: System (in system.dll)

Syntax

'Declaration
Public Function Add ( _
    value As PropertyDescriptor _
) As Integer
'Usage
Dim instance As PropertyDescriptorCollection
Dim value As PropertyDescriptor
Dim returnValue As Integer

returnValue = instance.Add(value)
public int Add (
    PropertyDescriptor value
)
public:
int Add (
    PropertyDescriptor^ value
)
public int Add (
    PropertyDescriptor value
)
public function Add (
    value : PropertyDescriptor
) : int

Parameter

Rückgabewert

Der Index der PropertyDescriptor-Klasse, die der Auflistung hinzugefügt wurde.

Ausnahmen

Ausnahmetyp Bedingung

NotSupportedException

Die Auflistung ist schreibgeschützt.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, 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

.NET Compact Framework

Unterstützt in: 2.0, 1.0

Siehe auch

Referenz

PropertyDescriptorCollection-Klasse
PropertyDescriptorCollection-Member
System.ComponentModel-Namespace