IVsTargetFrameworkAssemblies.IsSystemAssembly Method

Checks if a specified assembly is a system assembly and gets its 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 IsSystemAssembly ( _
    szAssemblyFile As String, _
    <OutAttribute> ByRef pIsSystem As Integer, _
    <OutAttribute> ByRef pTargetFrameworkVersion As UInteger _
) As Integer
'Usage
Dim instance As IVsTargetFrameworkAssemblies 
Dim szAssemblyFile As String 
Dim pIsSystem As Integer 
Dim pTargetFrameworkVersion As UInteger 
Dim returnValue As Integer 

returnValue = instance.IsSystemAssembly(szAssemblyFile, _
    pIsSystem, pTargetFrameworkVersion)
int IsSystemAssembly(
    string szAssemblyFile,
    out int pIsSystem,
    out uint pTargetFrameworkVersion
)
int IsSystemAssembly(
    [InAttribute] String^ szAssemblyFile, 
    [OutAttribute] int% pIsSystem, 
    [OutAttribute] unsigned int% pTargetFrameworkVersion
)
function IsSystemAssembly(
    szAssemblyFile : String, 
    pIsSystem : int, 
    pTargetFrameworkVersion : uint
) : int

Parameters

  • szAssemblyFile
    Type: System.String

    [in] Path to the assembly to check.

  • pIsSystem
    Type: System.Int32%

    [out] True if the assembly is a system assembly.

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 IsSystemAssembly(
    [in] LPCOLESTR szAssemblyFile, 
    [out] BOOL *pIsSystem,
    [out] TARGETFRAMEWORKVERSION *pTargetFrameworkVersion
);

.NET Framework Security

See Also

Reference

IVsTargetFrameworkAssemblies Interface

IVsTargetFrameworkAssemblies Members

Microsoft.VisualStudio.Shell.Interop Namespace