Nyelv

TypeDescriptor.GetDefaultProperty Metódus

Definíció

Egy összetevő alapértelmezett tulajdonságát adja vissza.

Túlterhelések

Name Description
GetDefaultProperty(Object, Boolean)

A megadott összetevő alapértelmezett tulajdonságát adja vissza egyéni típusleíróval.

GetDefaultProperty(Object)

A megadott összetevő alapértelmezett tulajdonságát adja vissza.

GetDefaultProperty(Type)

A megadott összetevőtípus alapértelmezett tulajdonságát adja vissza.

GetDefaultProperty(Object, Boolean)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

A megadott összetevő alapértelmezett tulajdonságát adja vissza egyéni típusleíróval.

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

Paraméterek

component
Object

Az az összetevő, amely az alapértelmezett tulajdonságot szeretné lekérni.

noCustomTypeDesc
Boolean

truene vegye figyelembe az egyéni típus leírási adatait; egyéb esetben. false

Válaszok

Az PropertyDescriptor alapértelmezett tulajdonsággal rendelkező, vagy null ha nincsenek tulajdonságok.

Attribútumok

Kivételek

component egy folyamatközi távoli objektum.

Megjegyzések

Ha a component paraméter az null, akkor ez a metódus ad vissza null.

Lásd még

A következőre érvényes:

GetDefaultProperty(Object)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

A megadott összetevő alapértelmezett tulajdonságát adja vissza.

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

Paraméterek

component
Object

Az az összetevő, amely az alapértelmezett tulajdonságot szeretné lekérni.

Válaszok

Az PropertyDescriptor alapértelmezett tulajdonsággal rendelkező, vagy null ha nincsenek tulajdonságok.

Attribútumok

Kivételek

component egy folyamatközi távoli objektum.

Megjegyzések

Ha a component paraméter az null, akkor ez a metódus ad vissza null.

Lásd még

A következőre érvényes:

GetDefaultProperty(Type)

Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs
Forrás:
TypeDescriptor.cs

A megadott összetevőtípus alapértelmezett tulajdonságát adja vissza.

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

Paraméterek

componentType
Type

A Type tulajdonság lekéréséhez használt osztályt jelöli.

Válaszok

Az PropertyDescriptor alapértelmezett tulajdonsággal rendelkező, vagy null ha nincsenek tulajdonságok.

Attribútumok

Megjegyzések

Ennek a metódusnak a verzióját csak akkor hívja meg, ha nem rendelkezik az objektum egy példányával.

Ha a componentType paraméter az null, akkor ez a metódus ad vissza null.

Lásd még

A következőre érvényes: