TypeDescriptor.GetDefaultProperty Metoda

Definice

Vrátí výchozí vlastnost komponenty.

Přetížení

Name Description
GetDefaultProperty(Object, Boolean)

Vrátí výchozí vlastnost pro zadanou komponentu s popisovačem vlastního typu.

GetDefaultProperty(Object)

Vrátí výchozí vlastnost pro zadanou komponentu.

GetDefaultProperty(Type)

Vrátí výchozí vlastnost pro zadaný typ komponenty.

GetDefaultProperty(Object, Boolean)

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs

Vrátí výchozí vlastnost pro zadanou komponentu s popisovačem vlastního typu.

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

Parametry

component
Object

Komponenta pro získání výchozí vlastnosti.

noCustomTypeDesc
Boolean

truenebere v úvahu informace o popisu vlastního typu; v opačném případě . false

Návraty

A PropertyDescriptor s výchozí vlastností nebo null pokud neexistují žádné vlastnosti.

Atributy

Výjimky

component je objekt vzdáleného procesu.

Poznámky

component Pokud je nullparametr , tato metoda vrátí null.

Viz také

Platí pro

GetDefaultProperty(Object)

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs

Vrátí výchozí vlastnost pro zadanou komponentu.

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

Parametry

component
Object

Komponenta pro získání výchozí vlastnosti.

Návraty

A PropertyDescriptor s výchozí vlastností nebo null pokud neexistují žádné vlastnosti.

Atributy

Výjimky

component je objekt vzdáleného procesu.

Poznámky

component Pokud je nullparametr , tato metoda vrátí null.

Viz také

Platí pro

GetDefaultProperty(Type)

Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs
Zdroj:
TypeDescriptor.cs

Vrátí výchozí vlastnost pro zadaný typ komponenty.

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

Parametry

componentType
Type

A Type , který představuje třídu získat vlastnost pro.

Návraty

A PropertyDescriptor s výchozí vlastností nebo null pokud neexistují žádné vlastnosti.

Atributy

Poznámky

Tuto verzi této metody zavolejte pouze v případě, že nemáte instanci objektu.

componentType Pokud je nullparametr , tato metoda vrátí null.

Viz také

Platí pro