Partager via


IVsTargetFrameworkAssemblies.GetTargetFrameworkDescription Method

Gets a descriptive string for a framework version.

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

Syntax

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

Parameters

  • pszDescription
    Type: String%

    [out] String describing the framework version.

Return Value

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

Remarks

COM Signature

From compsvcspkg90.idl:

HRESULT GetRequiredTargetFrameworkVersion(
    [in] LPCOLESTR szAssemblyFile,
    [out] TARGETFRAMEWORKVERSION *pTargetFrameworkVersion
);

.NET Framework Security

See Also

Reference

IVsTargetFrameworkAssemblies Interface

Microsoft.VisualStudio.Shell.Interop Namespace