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

‘선언
Function GetTargetFrameworkDescription ( _
    targetVersion As UInteger, _
    <OutAttribute> ByRef pszDescription As String _
) As Integer
‘사용 방법
Dim instance As IVsTargetFrameworkAssemblies
Dim targetVersion As UInteger
Dim pszDescription As String
Dim returnValue As Integer

returnValue = instance.GetTargetFrameworkDescription(targetVersion, _
    pszDescription)
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: System.String%
    [out] String describing the framework version.

Return Value

Type: System.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

IVsTargetFrameworkAssemblies Members

Microsoft.VisualStudio.Shell.Interop Namespace