PropertyDescriptor.GetChildProperties Metod

Definition

Överlagringar

Name Description
GetChildProperties()

Returnerar standardvärdet PropertyDescriptorCollection.

GetChildProperties(Attribute[])

Returnerar en PropertyDescriptorCollection med en angiven matris med attribut som ett filter.

GetChildProperties(Object)

Returnerar en PropertyDescriptorCollection för ett angivet objekt.

GetChildProperties(Object, Attribute[])

Returnerar en PropertyDescriptorCollection för ett angivet objekt med en angiven matris med attribut som ett filter.

GetChildProperties()

Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs

Returnerar standardvärdet PropertyDescriptorCollection.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties();
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
member this.GetChildProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
member this.GetChildProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties () As PropertyDescriptorCollection

Returer

En samling egenskapsbeskrivningar.

Attribut

Kommentarer

Den här metoden skickas null för både parametern instance och parametern filter .

Egenskaperna för parametern instance kan skilja sig från egenskaperna för en klass, eftersom containern kan lägga till eller ta bort egenskaper om parametern instance finns.

Parametern filter kan blandas Type och Attribute objekt. Filtrering definieras av följande regler:

  • Ett Type objekt behandlas som ett jokertecken. Det matchar alla egenskaper som har Type i sin uppsättning attribut.

  • Om en egenskap inte har en Attribute av samma klass inkluderas inte egenskapen i den returnerade matrisen.

  • Om attributet är en instans av Attributemåste egenskapen vara en exakt matchning för att inkluderas i den returnerade matrisen.

  • Om du anger en Attribute och den är standardegenskapen inkluderas den i den returnerade matrisen, även om det inte finns någon instans av Attribute i egenskapen.

Se även

Gäller för

GetChildProperties(Attribute[])

Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs

Returnerar en PropertyDescriptorCollection med en angiven matris med attribut som ett filter.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(cli::array <Attribute ^> ^ filter);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(Attribute[] filter);
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(Attribute[] filter);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
member this.GetChildProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
member this.GetChildProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties (filter As Attribute()) As PropertyDescriptorCollection

Parametrar

filter
Attribute[]

En matris av typen Attribute som ska användas som ett filter.

Returer

A PropertyDescriptorCollection med de egenskaper som matchar de angivna attributen.

Attribut

Kommentarer

Den här metoden skickas null för parametern instance .

Egenskaperna för parametern instance kan skilja sig från egenskaperna för en klass, eftersom platsen kan lägga till eller ta bort egenskaper om parametern instance är platsad.

Parametern filter kan blandas Type och Attribute objekt. Filtrering definieras av följande regler:

  • Ett Type objekt behandlas som ett jokertecken. Det matchar alla egenskaper som har Type i sin uppsättning attribut.

  • Om en egenskap inte har en Attribute av samma klass inkluderas inte egenskapen i den returnerade matrisen.

  • Om attributet är en instans av Attributemåste egenskapen vara en exakt matchning för att inkluderas i den returnerade matrisen.

  • Om du anger en Attribute instans och den är standardegenskapen inkluderas den i den returnerade matrisen även om det inte finns någon instans av Attribute egenskapen i egenskapen.

Se även

Gäller för

GetChildProperties(Object)

Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs

Returnerar en PropertyDescriptorCollection för ett angivet objekt.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(System::Object ^ instance);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object instance);
public System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object instance);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered.")>]
member this.GetChildProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
member this.GetChildProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetChildProperties (instance As Object) As PropertyDescriptorCollection

Parametrar

instance
Object

En komponent att hämta egenskaperna för.

Returer

A PropertyDescriptorCollection med egenskaperna för den angivna komponenten.

Attribut

Kommentarer

Den här metoden skickas null för parametern filter .

Egenskaperna för parametern instance kan skilja sig från egenskaperna för en klass, eftersom platsen kan lägga till eller ta bort egenskaper om parametern instance är platsad.

Parametern filter kan blandas Type och Attribute objekt. Filtrering definieras av följande regler:

  • Ett Type objekt behandlas som ett jokertecken. Det matchar alla egenskaper som har Type i sin uppsättning attribut.

  • Om en egenskap inte har en Attribute av samma klass inkluderas inte egenskapen i den returnerade matrisen.

  • Om attributet är en instans av Attributemåste egenskapen vara en exakt matchning för att inkluderas i den returnerade matrisen.

  • Om du anger en Attribute instans och den är standardegenskapen inkluderas den i den returnerade matrisen även om det inte finns någon instans av Attribute egenskapen i egenskapen.

Se även

Gäller för

GetChildProperties(Object, Attribute[])

Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs
Källa:
PropertyDescriptor.cs

Returnerar en PropertyDescriptorCollection för ett angivet objekt med en angiven matris med attribut som ett filter.

public:
 virtual System::ComponentModel::PropertyDescriptorCollection ^ GetChildProperties(System::Object ^ instance, cli::array <Attribute ^> ^ filter);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public virtual System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object? instance, Attribute[]? filter);
public virtual System.ComponentModel.PropertyDescriptorCollection GetChildProperties(object instance, Attribute[] filter);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The Type of instance cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetChildProperties : obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetChildProperties (instance As Object, filter As Attribute()) As PropertyDescriptorCollection

Parametrar

instance
Object

En komponent att hämta egenskaperna för.

filter
Attribute[]

En matris av typen Attribute som ska användas som ett filter.

Returer

A PropertyDescriptorCollection med de egenskaper som matchar de angivna attributen för den angivna komponenten.

Attribut

Kommentarer

Egenskaperna för parametern instance kan skilja sig från egenskaperna för en klass, eftersom platsen kan lägga till eller ta bort egenskaper om parametern instance är platsad.

Parametern filter kan blandas Type och Attribute objekt. Filtrering definieras av följande regler:

  • Ett Type objekt behandlas som ett jokertecken. Det matchar alla egenskaper som har Type i sin uppsättning attribut.

  • Om en egenskap inte har en Attribute av samma klass inkluderas inte egenskapen i den returnerade matrisen.

  • Om attributet är en instans av Attributemåste egenskapen vara en exakt matchning för att inkluderas i den returnerade matrisen.

  • Om du anger en Attribute instans och den är standardegenskapen inkluderas den i den returnerade matrisen även om det inte finns någon instans av Attribute egenskapen i egenskapen.

I allmänhet bör underordnade egenskaper returneras genom att implementera GetProperties medlemmen i den TypeConverter returnerade egenskapen.

Se även

Gäller för