Utilities.IsManagedAssembly(String) Method

Definition

A helper to check whether a DLL is a managed assembly.

public:
 static bool IsManagedAssembly(System::String ^ assemblyPath);
public static bool IsManagedAssembly (string assemblyPath);
static member IsManagedAssembly : string -> bool
Public Function IsManagedAssembly (assemblyPath As String) As Boolean

Parameters

assemblyPath
String

The path to the assembly.

Returns

Boolean

True if a managed assembly.

Remarks

Taken from https://stackoverflow.com/questions/367761/how-to-determine-whether-a-dll-is-a-managed-assembly-or-native-prevent-loading.

Applies to