IVsTargetFrameworkAssemblies::IsSystemAssembly Method (String^, Int32, UInt32)

 

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)

int IsSystemAssembly(
	String^ szAssemblyFile,
	[OutAttribute] int% pIsSystem,
	[OutAttribute] unsigned int% pTargetFrameworkVersion
)

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.

pTargetFrameworkVersion
Type: System::UInt32

[out] A IEnumTargetFrameworks value specifying the supported framework version.

Return Value

Type: System::Int32

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

From compsvcspkg90.idl:

HRESULT IsSystemAssembly(
    [in] LPCOLESTR szAssemblyFile, 
    [out] BOOL *pIsSystem,
    [out] TARGETFRAMEWORKVERSION *pTargetFrameworkVersion
);
Return to top
Show: