Uredi

Deli z drugimi prek


CustomTypeDescriptor.RequireRegisteredTypes Property

Definition

Gets a value that indicates whether types are required to be registered through RegisterType<T>().

public:
 virtual property Nullable<bool> RequireRegisteredTypes { Nullable<bool> get(); };
public virtual bool? RequireRegisteredTypes { get; }
member this.RequireRegisteredTypes : Nullable<bool>
Public Overridable ReadOnly Property RequireRegisteredTypes As Nullable(Of Boolean)

Property Value

Implements

Remarks

The default value is null which means that the type descriptor has not declared whether or not it is compatible registered types.

A type descriptor needs to implement this to return true or false if the feature switch

'System.ComponentModel.TypeDescriptor.RequireRegisteredTypes' is enabled.

If true is returned, then the type descriptor must also implement

GetConverterFromRegisteredType(),

GetEventsFromRegisteredType(), and

GetPropertiesFromRegisteredType().

Applies to