Compartir a través de


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: TInput

    The value to convert.

Return Value

Type: TOutput
The converted value. The exact value depends on the output type selected.

.NET Framework Security

See Also

Reference

ISharePointProjectService Interface

Microsoft.VisualStudio.SharePoint Namespace