共用方式為


IVsUIDataConverter.Convert(IVsUIObject, IVsUIObject) Method

Definition

Converts a data object.

public:
 int Convert(Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ pObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ % ppConvertedObject);
public:
 int Convert(Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ pObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIObject ^ &  ppConvertedObject);
int Convert(Microsoft::VisualStudio::Shell::Interop::IVsUIObject const & pObject, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIObject const & & ppConvertedObject);
public int Convert (Microsoft.VisualStudio.Shell.Interop.IVsUIObject pObject, out Microsoft.VisualStudio.Shell.Interop.IVsUIObject ppConvertedObject);
abstract member Convert : Microsoft.VisualStudio.Shell.Interop.IVsUIObject * IVsUIObject -> int
Public Function Convert (pObject As IVsUIObject, ByRef ppConvertedObject As IVsUIObject) As Integer

Parameters

pObject
IVsUIObject

[in] The object to convert.

ppConvertedObject
IVsUIObject

[out] Location to return a pointer to the converted object.

Returns

Returns S_OK if the data was converted.

Applies to