TypeDescriptionProvider.GetTypeDescriptorFromRegisteredType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetTypeDescriptorFromRegisteredType(Object) |
Returns a custom type descriptor for the given type or object. |
GetTypeDescriptorFromRegisteredType(Type) |
Returns a custom type descriptor for the given type or object. |
GetTypeDescriptorFromRegisteredType(Type, Object) |
Returns a custom type descriptor for the given type or object. |
GetTypeDescriptorFromRegisteredType(Object)
Returns a custom type descriptor for the given type or object.
public:
System::ComponentModel::ICustomTypeDescriptor ^ GetTypeDescriptorFromRegisteredType(System::Object ^ instance);
public System.ComponentModel.ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType (object instance);
member this.GetTypeDescriptorFromRegisteredType : obj -> System.ComponentModel.ICustomTypeDescriptor
Public Function GetTypeDescriptorFromRegisteredType (instance As Object) As ICustomTypeDescriptor
Parameters
- instance
- Object
Returns
Remarks
The objectType parameter is always valid, but the instance parameter may be null
if no instance was passed to TypeDescriptor. The method should return a custom type descriptor for the object. If the method is not interested in providing type information for the object it should return base.
Applies to
GetTypeDescriptorFromRegisteredType(Type)
Returns a custom type descriptor for the given type or object.
public:
System::ComponentModel::ICustomTypeDescriptor ^ GetTypeDescriptorFromRegisteredType(Type ^ objectType);
public System.ComponentModel.ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType (Type objectType);
member this.GetTypeDescriptorFromRegisteredType : Type -> System.ComponentModel.ICustomTypeDescriptor
Public Function GetTypeDescriptorFromRegisteredType (objectType As Type) As ICustomTypeDescriptor
Parameters
- objectType
- Type
Returns
Remarks
The objectType parameter is always valid, but the instance parameter may be null
if no instance was passed to TypeDescriptor. The method should return a custom type descriptor for the object. If the method is not interested in providing type information for the object it should return base.
Applies to
GetTypeDescriptorFromRegisteredType(Type, Object)
Returns a custom type descriptor for the given type or object.
public:
virtual System::ComponentModel::ICustomTypeDescriptor ^ GetTypeDescriptorFromRegisteredType(Type ^ objectType, System::Object ^ instance);
public virtual System.ComponentModel.ICustomTypeDescriptor? GetTypeDescriptorFromRegisteredType (Type objectType, object? instance);
abstract member GetTypeDescriptorFromRegisteredType : Type * obj -> System.ComponentModel.ICustomTypeDescriptor
override this.GetTypeDescriptorFromRegisteredType : Type * obj -> System.ComponentModel.ICustomTypeDescriptor
Public Overridable Function GetTypeDescriptorFromRegisteredType (objectType As Type, instance As Object) As ICustomTypeDescriptor
Parameters
- objectType
- Type
- instance
- Object
Returns
Remarks
The objectType parameter is always valid, but the instance parameter may be null
if no instance was passed to TypeDescriptor. The method should return a custom type descriptor for the object. If the method is not interested in providing type information for the object it should return base.
This method is prototyped as virtual, and by default returns a custom type descriptor that returns empty collections for all values if no parent provider was passed. If a parent provider was passed, this method will invoke the parent provider's GetTypeDescriptorFromRegisteredType method.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om