Table of Contents

Method LoadIconFromAssembly

Namespace
Alternet.Common
Assembly
Alternet.Common.Winforms.v10.dll

LoadIconFromAssembly(Assembly, string)

Loads an icon from an embedded resource in the specified assembly.

public static Icon LoadIconFromAssembly(Assembly assembly, string resourceName)

Parameters

assembly Assembly

The assembly containing the embedded resource.

resourceName string

The name of the resource to load.

Returns

Icon

The loaded Icon object.

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.