IVsTargetFrameworkAssemblies.GetSystemAssemblies Method
Gets an enumeration containing the system assembly reference for a given 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 GetSystemAssemblies ( _
targetVersion As UInteger, _
<OutAttribute> ByRef pAssemblies As IEnumSystemAssemblies _
) As Integer
int GetSystemAssemblies(
uint targetVersion,
out IEnumSystemAssemblies pAssemblies
)
int GetSystemAssemblies(
[InAttribute] unsigned int targetVersion,
[OutAttribute] IEnumSystemAssemblies^% pAssemblies
)
abstract GetSystemAssemblies :
targetVersion:uint32 *
pAssemblies:IEnumSystemAssemblies byref -> int
function GetSystemAssemblies(
targetVersion : uint,
pAssemblies : IEnumSystemAssemblies
) : int
Parameters
targetVersion
Type: UInt32[out] A WellKnownTargetFrameworkVersions value specifying the required framework version.
pAssemblies
Type: Microsoft.VisualStudio.Shell.Interop.IEnumSystemAssemblies%[out] A IEnumSystemAssemblies value specifying the required framework version.
Return Value
Type: Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.