Partager via


IVsTargetFrameworkAssemblies.IsSystemAssembly(String, Int32, UInt32) Method

Definition

Checks if a specified assembly is a system assembly and gets its framework version.

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

Parameters

szAssemblyFile
String

[in] Path to the assembly to check.

pIsSystem
Int32

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

pTargetFrameworkVersion
UInt32

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

Applies to