TypeDescriptor.GetDefaultProperty Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Restituisce la proprietà predefinita per un componente.
Overload
| Nome | Descrizione |
|---|---|
| GetDefaultProperty(Object, Boolean) |
Restituisce la proprietà predefinita per il componente specificato con un descrittore di tipo personalizzato. |
| GetDefaultProperty(Object) |
Restituisce la proprietà predefinita per il componente specificato. |
| GetDefaultProperty(Type) |
Restituisce la proprietà predefinita per il tipo di componente specificato. |
GetDefaultProperty(Object, Boolean)
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
Restituisce la proprietà predefinita per il componente specificato con un descrittore di tipo personalizzato.
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
Parametri
- component
- Object
Componente per cui ottenere la proprietà predefinita.
- noCustomTypeDesc
- Boolean
true non considerare le informazioni sulla descrizione del tipo personalizzato; in caso contrario, false.
Valori restituiti
Oggetto PropertyDescriptor con la proprietà predefinita o null se non sono presenti proprietà.
- Attributi
Eccezioni
component è un oggetto remoto tra processi.
Commenti
Se il component parametro è null, questo metodo restituisce null.
Vedi anche
- DefaultPropertyAttribute
- PropertyDescriptor
- ICustomTypeDescriptor
- CreateProperty
- GetProperties
- GetDefaultEvent
Si applica a
GetDefaultProperty(Object)
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
Restituisce la proprietà predefinita per il componente specificato.
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
Parametri
- component
- Object
Componente per cui ottenere la proprietà predefinita.
Valori restituiti
Oggetto PropertyDescriptor con la proprietà predefinita o null se non sono presenti proprietà.
- Attributi
Eccezioni
component è un oggetto remoto tra processi.
Commenti
Se il component parametro è null, questo metodo restituisce null.
Vedi anche
Si applica a
GetDefaultProperty(Type)
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
- Origine:
- TypeDescriptor.cs
Restituisce la proprietà predefinita per il tipo di componente specificato.
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
Parametri
Valori restituiti
Oggetto PropertyDescriptor con la proprietà predefinita o null se non sono presenti proprietà.
- Attributi
Commenti
Chiamare questa versione di questo metodo solo quando non si dispone di un'istanza dell'oggetto .
Se il componentType parametro è null, questo metodo restituisce null.