Compartilhar via


IVsTargetFrameworkAssemblies.GetTargetFrameworkDescription Method

Definition

Gets a descriptive string for a framework version.

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

Parameters

targetVersion
UInt32

[in] A WellKnownTargetFrameworkVersions value specifying the required framework version.

pszDescription
String

[out] String describing the framework version.

Returns

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  
);  

Applies to