TypeDescriptor.GetDefaultProperty Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Bir bileşenin varsayılan özelliğini döndürür.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| GetDefaultProperty(Object, Boolean) |
Özel tür tanımlayıcısı ile belirtilen bileşen için varsayılan özelliği döndürür. |
| GetDefaultProperty(Object) |
Belirtilen bileşen için varsayılan özelliği döndürür. |
| GetDefaultProperty(Type) |
Belirtilen bileşen türü için varsayılan özelliği döndürür. |
GetDefaultProperty(Object, Boolean)
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Özel tür tanımlayıcısı ile belirtilen bileşen için varsayılan özelliği döndürür.
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
Parametreler
- component
- Object
varsayılan özelliğinin alınacak bileşeni.
- noCustomTypeDesc
- Boolean
true özel tür açıklama bilgilerini dikkate almamak için; aksi takdirde , false.
Döndürülenler
PropertyDescriptor Varsayılan özelliğe sahip veya null özellik yoksa A.
- Öznitelikler
Özel durumlar
component , işlemler arası uzak bir nesnedir.
Açıklamalar
component parametresi isenull, bu yöntem döndürürnull.
Ayrıca bkz.
- DefaultPropertyAttribute
- PropertyDescriptor
- ICustomTypeDescriptor
- CreateProperty
- GetProperties
- GetDefaultEvent
Şunlara uygulanır
GetDefaultProperty(Object)
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen bileşen için varsayılan özelliği döndürür.
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
Parametreler
- component
- Object
varsayılan özelliğinin alınacak bileşeni.
Döndürülenler
PropertyDescriptor Varsayılan özelliğe sahip veya null özellik yoksa A.
- Öznitelikler
Özel durumlar
component , işlemler arası uzak bir nesnedir.
Açıklamalar
component parametresi isenull, bu yöntem döndürürnull.
Ayrıca bkz.
Şunlara uygulanır
GetDefaultProperty(Type)
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
- Kaynak:
- TypeDescriptor.cs
Belirtilen bileşen türü için varsayılan özelliği döndürür.
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
Parametreler
Döndürülenler
PropertyDescriptor Varsayılan özelliğe sahip veya null özellik yoksa A.
- Öznitelikler
Açıklamalar
Bu yöntemin bu sürümünü yalnızca nesnesinin bir örneğine sahip olmadığınızda çağırın.
componentType parametresi isenull, bu yöntem döndürürnull.