다음을 통해 공유


IVsFrameworkMultiTargeting.CheckFrameworkCompatibility Method

Takes two target frameworks and compares them for compatibility.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function CheckFrameworkCompatibility ( _
    pwszTargetFrameworkMonikerSource As String, _
    pwszTargetFrameworkMonikerTarget As String, _
    <OutAttribute> ByRef pdwCompat As UInteger _
) As Integer
int CheckFrameworkCompatibility(
    string pwszTargetFrameworkMonikerSource,
    string pwszTargetFrameworkMonikerTarget,
    out uint pdwCompat
)
int CheckFrameworkCompatibility(
    [InAttribute] String^ pwszTargetFrameworkMonikerSource, 
    [InAttribute] String^ pwszTargetFrameworkMonikerTarget, 
    [OutAttribute] unsigned int% pdwCompat
)
abstract CheckFrameworkCompatibility : 
        pwszTargetFrameworkMonikerSource:string * 
        pwszTargetFrameworkMonikerTarget:string * 
        pdwCompat:uint32 byref -> int
function CheckFrameworkCompatibility(
    pwszTargetFrameworkMonikerSource : String, 
    pwszTargetFrameworkMonikerTarget : String, 
    pdwCompat : uint
) : int

Parameters

  • pwszTargetFrameworkMonikerSource
    Type: String

    [in] The source target framework to compare.

  • pwszTargetFrameworkMonikerTarget
    Type: String

    [in] The second target framework to compare.

  • pdwCompat
    Type: 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.

Return Value

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

.NET Framework Security

See Also

Reference

IVsFrameworkMultiTargeting Interface

Microsoft.VisualStudio.Shell.Interop Namespace