Method LoadIconFromAssembly
LoadIconFromAssembly(Assembly, string)
Loads an icon from an embedded resource in the specified assembly.
public static Icon LoadIconFromAssembly(Assembly assembly, string resourceName)
Parameters
assembly
AssemblyThe assembly containing the embedded resource.
resourceName
stringThe name of the resource to load.
Returns
Exceptions
- ArgumentException
Thrown when the assembly or resource name is null or empty.
- FileNotFoundException
Thrown when the specified resource is not found in the assembly.