Table of Contents

Struct IconReference

Namespace
Microsoft.WindowsAPICodePack.Shell
Assembly
Microsoft.WindowsAPICodePack.Shell.dll

A refence to an icon resource

public struct IconReference
Inherited Members

Constructors

IconReference(string)

Overloaded constructor takes in the module name and resource id separated by a comma.

public IconReference(string refPath)

Parameters

refPath string

Reference path for the icon consiting of the module name and resource id.

IconReference(string, int)

Overloaded constructor takes in the module name and resource id for the icon reference.

public IconReference(string moduleName, int resourceId)

Parameters

moduleName string

String specifying the name of an executable file, DLL, or icon file

resourceId int

Zero-based index of the icon

Properties

ModuleName

String specifying the name of an executable file, DLL, or icon file

public string ModuleName { get; set; }

Property Value

string

ReferencePath

Reference to a specific icon within a EXE, DLL or icon file.

public string ReferencePath { get; set; }

Property Value

string

ResourceId

Zero-based index of the icon

public int ResourceId { readonly get; set; }

Property Value

int

Methods

Equals(object)

Determines if this object is equal to another.

public override bool Equals(object obj)

Parameters

obj object

The object to compare

Returns

bool

Returns true if the objects are equal; false otherwise.

GetHashCode()

Generates a nearly unique hashcode for this structure.

public override int GetHashCode()

Returns

int

A hash code.

Operators

operator ==(IconReference, IconReference)

Implements the == (equality) operator.

public static bool operator ==(IconReference icon1, IconReference icon2)

Parameters

icon1 IconReference

First object to compare.

icon2 IconReference

Second object to compare.

Returns

bool

True if icon1 equals icon1; false otherwise.

operator !=(IconReference, IconReference)

Implements the != (unequality) operator.

public static bool operator !=(IconReference icon1, IconReference icon2)

Parameters

icon1 IconReference

First object to compare.

icon2 IconReference

Second object to compare.

Returns

bool

True if icon1 does not equals icon1; false otherwise.