共用方式為


IVsTargetFrameworkAssemblies.GetSystemAssemblies Method

Definition

Gets an enumeration containing the system assembly reference for a given framework version.

public:
 int GetSystemAssemblies(System::UInt32 targetVersion, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumSystemAssemblies ^ % pAssemblies);
public:
 int GetSystemAssemblies(unsigned int targetVersion, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumSystemAssemblies ^ &  pAssemblies);
int GetSystemAssemblies(unsigned int targetVersion, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IEnumSystemAssemblies const & & pAssemblies);
public int GetSystemAssemblies (uint targetVersion, out Microsoft.VisualStudio.Shell.Interop.IEnumSystemAssemblies pAssemblies);
abstract member GetSystemAssemblies : uint32 * IEnumSystemAssemblies -> int
Public Function GetSystemAssemblies (targetVersion As UInteger, ByRef pAssemblies As IEnumSystemAssemblies) As Integer

Parameters

targetVersion
UInt32

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

pAssemblies
IEnumSystemAssemblies

[out] A IEnumSystemAssemblies value specifying the required framework version.

Returns

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

Remarks

The version returned is the version of system assemblies that are installed on a computer with the specified version of the framework.

From compsvcspkg90.idl:

COM Signature

From compsvcspkg90.idl:

HRESULT GetSystemAssemblies(  
    [in] TARGETFRAMEWORKVERSION targetVersion,  
    [out] IEnumSystemAssemblies **pAssemblies  
);  

Applies to