다음을 통해 공유


IVsUIDataConverterManager.RegisterConverter Method

Definition

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.

Applies to