ISharePointProjectService.Convert<TInput,TOutput>(TInput) Method

Definition

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

TOutput

The converted value. The exact value depends on the output type selected.

Applies to