Partilhar via


IVsFrameworkMultiTargeting.CheckFrameworkCompatibility Method

Definition

Takes two target frameworks and compares them for compatibility.

public:
 int CheckFrameworkCompatibility(System::String ^ pwszTargetFrameworkMonikerSource, System::String ^ pwszTargetFrameworkMonikerTarget, [Runtime::InteropServices::Out] System::UInt32 % pdwCompat);
int CheckFrameworkCompatibility(std::wstring const & pwszTargetFrameworkMonikerSource, std::wstring const & pwszTargetFrameworkMonikerTarget, [Runtime::InteropServices::Out] unsigned int & pdwCompat);
public int CheckFrameworkCompatibility (string pwszTargetFrameworkMonikerSource, string pwszTargetFrameworkMonikerTarget, out uint pdwCompat);
abstract member CheckFrameworkCompatibility : string * string * uint32 -> int
Public Function CheckFrameworkCompatibility (pwszTargetFrameworkMonikerSource As String, pwszTargetFrameworkMonikerTarget As String, ByRef pdwCompat As UInteger) As Integer

Parameters

pwszTargetFrameworkMonikerSource
String

[in] The source target framework to compare.

pwszTargetFrameworkMonikerTarget
String

[in] The second target framework to compare.

pdwCompat
UInt32

[out, retval] The result of the comparison. Returns VSFRAMEWORKCOMPATIBILITY_COMPATIBLE (0) to mean compatible. Otherwise it sets the bits to indicate the target framework moniker components that are incompatible, as described in the __VSFRAMEWORKCOMPATIBILITY enumeration.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to