ISharePointProjectService.Convert<TInput, TOutput> Method
Converts one project type to another.
Namespace: Microsoft.VisualStudio.SharePoint
Assembly: Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)
Syntax
'Declaration
Function Convert(Of TInput As Class, TOutput) ( _
value As TInput _
) As TOutput
TOutput Convert<TInput, TOutput>(
TInput value
)
where TInput : class
Type Parameters
TInput
The input type parameter. The following types are supported:ISharePointProject
ISharePointProjectItem
ISharePointProjectFeature
ISharePointProjectPackage
EnvDTE.Project
EnvDTE.ProjectItem
Visual Studio project interfaces such as Microsoft.VisualStudio.Shell.Interop.IVsHierarchy and Microsoft.VisualStudio.Shell.Interop.IVsProject
TOutput
The output type parameter. The following types are supported:ISharePointProject
ISharePointProjectItem
ISharePointProjectFeature
ISharePointProjectPackage
EnvDTE.Project
EnvDTE.ProjectItem
Visual 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.
Parameters
- value
Type: TInput
The value to convert.
Return Value
Type: TOutput
The converted value. The exact value depends on the output type selected.
.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.