次の方法で共有


ISharePointProjectService.Convert<TInput, TOutput> メソッド

プロジェクト タイプを別のタイプに変換します。

名前空間:  Microsoft.VisualStudio.SharePoint
アセンブリ:  Microsoft.VisualStudio.SharePoint (Microsoft.VisualStudio.SharePoint.dll 内)

構文

'宣言
Function Convert(Of TInput As Class, TOutput) ( _
    value As TInput _
) As TOutput
TOutput Convert<TInput, TOutput>(
    TInput value
)
where TInput : class

型パラメーター

  • TInput
    入力の型パラメーター。 サポートされる型は次のとおりです。

    ISharePointProject

    ISharePointProjectItem

    ISharePointProjectFeature

    ISharePointProjectPackage

    EnvDTE.Project

    EnvDTE.ProjectItem

    Microsoft.VisualStudio.Shell.Interop.IVsHierarchy、Microsoft.VisualStudio.Shell.Interop.IVsProject などの Visual Studio プロジェクト インターフェイス

  • TOutput
    出力の型パラメーター。 サポートされる型は次のとおりです。

    ISharePointProject

    ISharePointProjectItem

    ISharePointProjectFeature

    ISharePointProjectPackage

    EnvDTE.Project

    EnvDTE.ProjectItem

    Microsoft.VisualStudio.Shell.Interop.IVsHierarchy、Microsoft.VisualStudio.Shell.Interop.IVsProject などの Visual Studio プロジェクト インターフェイス

    UInt32 を使用して、Microsoft.VisualStudio.Shell.Interop.IVsHierarchy アイテム ID を取得できます。

パラメーター

  • value
    型: TInput
    変換する値。

戻り値

型: TOutput
変換された値。正確な値は、選択した出力の種類によって異なります。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

ISharePointProjectService インターフェイス

Microsoft.VisualStudio.SharePoint 名前空間