Share via


TypeDescriptor.GetDefaultProperty Yöntem

Tanım

Bir bileşenin varsayılan özelliğini döndürür.

Aşırı Yüklemeler

GetDefaultProperty(Type)

Belirtilen bileşen türü için varsayılan özelliği döndürür.

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)

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);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty (Type componentType);
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty (Type componentType);
static member GetDefaultProperty : Type -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (componentType As Type) As PropertyDescriptor

Parametreler

componentType
Type

Type için özelliğinin alınabilecek sınıfını temsil eden bir.

Döndürülenler

PropertyDescriptor Varsayılan özelliğe sahip bir veya null özellik yoksa.

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.

Ayrıca bkz.

Şunlara uygulanır

GetDefaultProperty(Object, Boolean)

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);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty (object component, bool noCustomTypeDesc);
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty (object component, bool noCustomTypeDesc);
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ın olduğu bileşen.

noCustomTypeDesc
Boolean

true özel tür açıklaması bilgilerini dikkate almamak için; aksi takdirde , false.

Döndürülenler

PropertyDescriptor Varsayılan özelliğe sahip bir veya null özellik yoksa.

Ö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(Object)

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);
public static System.ComponentModel.PropertyDescriptor GetDefaultProperty (object component);
public static System.ComponentModel.PropertyDescriptor? GetDefaultProperty (object component);
static member GetDefaultProperty : obj -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetDefaultProperty (component As Object) As PropertyDescriptor

Parametreler

component
Object

Varsayılan özelliğinin alın olduğu bileşen.

Döndürülenler

PropertyDescriptor Varsayılan özelliğe sahip bir veya null özellik yoksa.

Ö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