ISharePointProjectService.Convert<TInput,TOutput>(TInput) 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.
Converts one project type to another.
public:
generic <typename TInput, typename TOutput>
where TInput : class TOutput Convert(TInput value);
public TOutput Convert<TInput,TOutput> (TInput value) where TInput : class;
abstract member Convert : 'Input -> 'Output (requires 'Input : null)
Public Function Convert(Of TInput As Class, TOutput As Class) (value As TInput) As TOutput
Type Parameters
- TInput
The output type parameter. The following types are supported:ISharePointProjectISharePointProjectItemISharePointProjectFeatureISharePointProjectPackageEnvDTE.ProjectEnvDTE.ProjectItemVisual Studio project interfaces such as Microsoft.VisualStudio.Shell.Interop.IVsHierarchy and Microsoft.VisualStudio.Shell.Interop.IVsProject
UInt32
can be used to retrieve the Microsoft.VisualStudio.Shell.Interop.IVsHierarchy item ID.
- TOutput
The input type parameter. The following types are supported:ISharePointProjectISharePointProjectItemISharePointProjectFeatureISharePointProjectPackageEnvDTE.ProjectEnvDTE.ProjectItemVisual Studio project interfaces such as Microsoft.VisualStudio.Shell.Interop.IVsHierarchy and Microsoft.VisualStudio.Shell.Interop.IVsProject
Parameters
- value
- TInput
The value to convert.
Returns
The converted value. The exact value depends on the output type selected.