ITypeDescriptorContext.Instance Property
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.
Gets the object that is connected with this type descriptor request.
public:
property System::Object ^ Instance { System::Object ^ get(); };
public object Instance { get; }
public object? Instance { get; }
member this.Instance : obj
Public ReadOnly Property Instance As Object
Property Value
The object that invokes the method on the TypeDescriptor; otherwise, null
if there is no object responsible for the call.
Remarks
The Instance property gets the object that is invoking the ITypeDescriptorContext interface. For example, if a type converter is given a Color to convert, Instance returns the actual instance of the control that is using the Color. You can subsequently query the control for further information about its services and its Container.
Applies to
See also
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