IVsUIDataConverterManager.RegisterConverter Method
Registers the convertor with the shell.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
Syntax
'Declaration
Function RegisterConverter ( _
TypeName As String, _
dwDataFormatFrom As UInteger, _
dwDataFormatTo As UInteger, _
pConverter As IVsUIDataConverter _
) As Integer
int RegisterConverter(
string TypeName,
uint dwDataFormatFrom,
uint dwDataFormatTo,
IVsUIDataConverter pConverter
)
int RegisterConverter(
[InAttribute] String^ TypeName,
[InAttribute] unsigned int dwDataFormatFrom,
[InAttribute] unsigned int dwDataFormatTo,
[InAttribute] IVsUIDataConverter^ pConverter
)
abstract RegisterConverter :
TypeName:string *
dwDataFormatFrom:uint32 *
dwDataFormatTo:uint32 *
pConverter:IVsUIDataConverter -> int
function RegisterConverter(
TypeName : String,
dwDataFormatFrom : uint,
dwDataFormatTo : uint,
pConverter : IVsUIDataConverter
) : int
Parameters
TypeName
Type: String[in] The type of the data family.
dwDataFormatFrom
Type: UInt32[in] The source format for this convertor.
dwDataFormatTo
Type: UInt32[in] The target format for this convertor.
pConverter
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIDataConverter[in] The convertor to use.
Return Value
Type: Int32
Returns S_OK if the convertor was registered.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.