ISharePointProjectService.Convert<TInput, TOutput> Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
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 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.
TOutput
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
Parameters
value
Type: TInputThe 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.