IVsTrackProjectRetargeting2.OnSetTargetFramework Method
Occurs when the target framework is sest.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)
Syntax
'Declaration
Function OnSetTargetFramework ( _
pHier As IVsHierarchy, _
currentTargetFramework As String, _
newTargetFramework As String, _
pWorkerCallback As IVsSetTargetFrameworkWorkerCallback, _
ReloadProject As Boolean _
) As Integer
int OnSetTargetFramework(
IVsHierarchy pHier,
string currentTargetFramework,
string newTargetFramework,
IVsSetTargetFrameworkWorkerCallback pWorkerCallback,
bool ReloadProject
)
int OnSetTargetFramework(
[InAttribute] IVsHierarchy^ pHier,
[InAttribute] String^ currentTargetFramework,
[InAttribute] String^ newTargetFramework,
[InAttribute] IVsSetTargetFrameworkWorkerCallback^ pWorkerCallback,
[InAttribute] bool ReloadProject
)
abstract OnSetTargetFramework :
pHier:IVsHierarchy *
currentTargetFramework:string *
newTargetFramework:string *
pWorkerCallback:IVsSetTargetFrameworkWorkerCallback *
ReloadProject:bool -> int
function OnSetTargetFramework(
pHier : IVsHierarchy,
currentTargetFramework : String,
newTargetFramework : String,
pWorkerCallback : IVsSetTargetFrameworkWorkerCallback,
ReloadProject : boolean
) : int
Parameters
pHier
Type: Microsoft.VisualStudio.Shell.Interop.IVsHierarchyThe project hierarchy.
currentTargetFramework
Type: StringThe current target framework.
newTargetFramework
Type: StringThe new target framework.
pWorkerCallback
Type: Microsoft.VisualStudio.Shell.Interop.IVsSetTargetFrameworkWorkerCallbackThe callback.
ReloadProject
Type: Booleantrue to reload the project after retargeting, otherwise false.
Return Value
Type: Int32
The HRESULT.
.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.