Condividi tramite


IVsUIDataConverterManager.GetObjectConverter Method

Definition

Get a convertor for a specified object.

public:
 int GetObjectConverter(Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ pObject, System::UInt32 dwDataFormatTo, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIDataConverter ^ % ppConverter);
public:
 int GetObjectConverter(Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ pObject, unsigned int dwDataFormatTo, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIDataConverter ^ &  ppConverter);
int GetObjectConverter(Microsoft::VisualStudio::Shell::Interop::IVsUIObject const & pObject, unsigned int dwDataFormatTo, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIDataConverter const & & ppConverter);
public int GetObjectConverter (Microsoft.VisualStudio.Shell.Interop.IVsUIObject pObject, uint dwDataFormatTo, out Microsoft.VisualStudio.Shell.Interop.IVsUIDataConverter ppConverter);
abstract member GetObjectConverter : Microsoft.VisualStudio.Shell.Interop.IVsUIObject * uint32 * IVsUIDataConverter -> int
Public Function GetObjectConverter (pObject As IVsUIObject, dwDataFormatTo As UInteger, ByRef ppConverter As IVsUIDataConverter) As Integer

Parameters

pObject
IVsUIObject

[in] The object to convert.

dwDataFormatTo
UInt32

[in] The target format.

ppConverter
IVsUIDataConverter

[out] Location to return a pointer to the convertor to use.

Returns

Returns S_OK if the convertor was returned.

Applies to