IVsTrackProjectRetargetingEvents.OnRetargetingFailure(String, IVsHierarchy, String, String) Methode

Definition

Wird ausgelöst, wenn während der Neuzuweisung des Projekts irgendein Fehler auftritt.

public:
 int OnRetargetingFailure(System::String ^ projRef, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::String ^ fromTargetFramework, System::String ^ toTargetFramework);
public:
 int OnRetargetingFailure(Platform::String ^ projRef, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Platform::String ^ fromTargetFramework, Platform::String ^ toTargetFramework);
int OnRetargetingFailure(std::wstring const & projRef, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, std::wstring const & fromTargetFramework, std::wstring const & toTargetFramework);
public int OnRetargetingFailure (string projRef, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, string fromTargetFramework, string toTargetFramework);
abstract member OnRetargetingFailure : string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * string -> int
Public Function OnRetargetingFailure (projRef As String, pHier As IVsHierarchy, fromTargetFramework As String, toTargetFramework As String) As Integer

Parameter

projRef
String

[in] Der eindeutige Projektverweisname.

pHier
IVsHierarchy

[in] Die Projekthierarchie, in der der Fehler aufgetreten ist.

fromTargetFramework
String

[in] Das aktuelle Zielframework des Projekts.

toTargetFramework
String

[in] Das neue Zielframework des Projekts.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Gilt für