TypeDescriptor.GetDefaultProperty Methode

Definition

Gibt die Standardeigenschaft für eine Komponente zurück.

Überlädt

Name Beschreibung
GetDefaultProperty(Object, Boolean)

Gibt die Standardeigenschaft für die angegebene Komponente mit einem benutzerdefinierten Typdeskriptor zurück.

GetDefaultProperty(Object)

Gibt die Standardeigenschaft für die angegebene Komponente zurück.

GetDefaultProperty(Type)

Gibt die Standardeigenschaft für den angegebenen Komponententyp zurück.

GetDefaultProperty(Object, Boolean)

Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs

Gibt die Standardeigenschaft für die angegebene Komponente mit einem benutzerdefinierten Typdeskriptor zurück.

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(System::Object ^ component, bool noCustomTypeDesc);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty(object component, bool noCustomTypeDesc);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(object component, bool noCustomTypeDesc);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")>]
static member GetDefaultProperty : obj * bool -> System.ComponentModel.PropertyDescriptor
static member GetDefaultProperty : obj * bool -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (component As Object, noCustomTypeDesc As Boolean) As PropertyDescriptor

Parameter

component
Object

Die Komponente, für die die Standardeigenschaft abgerufen werden soll.

noCustomTypeDesc
Boolean

truebenutzerdefinierte Typbeschreibungsinformationen nicht zu berücksichtigen; andernfalls . false

Gibt zurück

A PropertyDescriptor mit der Standardeigenschaft oder null wenn keine Eigenschaften vorhanden sind.

Attribute

Ausnahmen

component ist ein prozessübergreifendes remoted-Objekt.

Hinweise

Wenn der component Parameter lautet null, gibt diese Methode nullzurück.

Weitere Informationen

Gilt für:

GetDefaultProperty(Object)

Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs

Gibt die Standardeigenschaft für die angegebene Komponente zurück.

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(System::Object ^ component);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty(object component);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(object component);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of component cannot be statically discovered.")>]
static member GetDefaultProperty : obj -> System.ComponentModel.PropertyDescriptor
static member GetDefaultProperty : obj -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (component As Object) As PropertyDescriptor

Parameter

component
Object

Die Komponente, für die die Standardeigenschaft abgerufen werden soll.

Gibt zurück

A PropertyDescriptor mit der Standardeigenschaft oder null wenn keine Eigenschaften vorhanden sind.

Attribute

Ausnahmen

component ist ein prozessübergreifendes remoted-Objekt.

Hinweise

Wenn der component Parameter lautet null, gibt diese Methode nullzurück.

Weitere Informationen

Gilt für:

GetDefaultProperty(Type)

Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs
Quelle:
TypeDescriptor.cs

Gibt die Standardeigenschaft für den angegebenen Komponententyp zurück.

public:
 static System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty(Type ^ componentType);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty(Type componentType);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty(Type componentType);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
static member GetDefaultProperty : Type -> System.ComponentModel.PropertyDescriptor
static member GetDefaultProperty : Type -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (componentType As Type) As PropertyDescriptor

Parameter

componentType
Type

A Type that represents the class to get the property for.

Gibt zurück

A PropertyDescriptor mit der Standardeigenschaft oder null wenn keine Eigenschaften vorhanden sind.

Attribute

Hinweise

Rufen Sie diese Version dieser Methode nur auf, wenn Sie keine Instanz des Objekts haben.

Wenn der componentType Parameter lautet null, gibt diese Methode nullzurück.

Weitere Informationen

Gilt für: