TypeDescriptor.GetDefaultProperty Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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
- DefaultPropertyAttribute
- PropertyDescriptor
- ICustomTypeDescriptor
- CreateProperty
- GetProperties
- GetDefaultEvent
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
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.