IVsUIDataConverterManager.RegisterConverter 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.
Registers the convertor with the shell.
public:
int RegisterConverter(System::String ^ TypeName, System::UInt32 dwDataFormatFrom, System::UInt32 dwDataFormatTo, Microsoft::VisualStudio::Shell::Interop::IVsUIDataConverter ^ pConverter);
public:
int RegisterConverter(Platform::String ^ TypeName, unsigned int dwDataFormatFrom, unsigned int dwDataFormatTo, Microsoft::VisualStudio::Shell::Interop::IVsUIDataConverter ^ pConverter);
int RegisterConverter(std::wstring const & TypeName, unsigned int dwDataFormatFrom, unsigned int dwDataFormatTo, Microsoft::VisualStudio::Shell::Interop::IVsUIDataConverter const & pConverter);
public int RegisterConverter (string TypeName, uint dwDataFormatFrom, uint dwDataFormatTo, Microsoft.VisualStudio.Shell.Interop.IVsUIDataConverter pConverter);
abstract member RegisterConverter : string * uint32 * uint32 * Microsoft.VisualStudio.Shell.Interop.IVsUIDataConverter -> int
Public Function RegisterConverter (TypeName As String, dwDataFormatFrom As UInteger, dwDataFormatTo As UInteger, pConverter As IVsUIDataConverter) As Integer
Parameters
- TypeName
- String
[in] The type of the data family.
- dwDataFormatFrom
- UInt32
[in] The source format for this convertor.
- dwDataFormatTo
- UInt32
[in] The target format for this convertor.
- pConverter
- IVsUIDataConverter
[in] The convertor to use.
Returns
Returns S_OK if the convertor was registered.