Compartir a través de


IVsFrameworkMultiTargeting.GetTargetFramework Method

Retrieves the target framework moniker of the target framework.

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

Syntax

'Declaration
Function GetTargetFramework ( _
    pwszAssemblyPath As String, _
    pwszTargetFrameworkIdentifier As String, _
    <OutAttribute> ByRef pbstrTargetFrameworkMoniker As String _
) As Integer
int GetTargetFramework(
    string pwszAssemblyPath,
    string pwszTargetFrameworkIdentifier,
    out string pbstrTargetFrameworkMoniker
)
int GetTargetFramework(
    [InAttribute] String^ pwszAssemblyPath, 
    [InAttribute] String^ pwszTargetFrameworkIdentifier, 
    [OutAttribute] String^% pbstrTargetFrameworkMoniker
)
abstract GetTargetFramework : 
        pwszAssemblyPath:string * 
        pwszTargetFrameworkIdentifier:string * 
        pbstrTargetFrameworkMoniker:string byref -> int
function GetTargetFramework(
    pwszAssemblyPath : String, 
    pwszTargetFrameworkIdentifier : String, 
    pbstrTargetFrameworkMoniker : String
) : int

Parameters

  • pwszAssemblyPath
    Type: String

    [in] The path to an assembly.

  • pwszTargetFrameworkIdentifier
    Type: String

    [in] The identifier of the target framework.

  • pbstrTargetFrameworkMoniker
    Type: String%

    [out, retval] The moniker of the target framework.

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