This documentation is archived and is not being maintained.

ResXFileRef Class

Represents a link to an external resource.

For a list of all members of this type, see ResXFileRef Members.


[Visual Basic]
Public Class ResXFileRef
public class ResXFileRef
public __gc class ResXFileRef
class ResXFileRef

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The ResXFileRef class is used to include references to files in an XML resource (.resx) file. A ResXFileRef object represents a link to an external resource. The resource manager loads the resource returned when the resource specified by the ResXFileRef object is queried.

In a data entry in a .resx file, the type is a ResXFileRef, and the value is the path location on disk. When the resource manager deserializes the object, the ResXFileRef performs the I/O to get the file.

When you compile a .resx file with ResGen.exe, the resources specified in the .resx file are embedded in the resulting document resource file.

The following example shows typical contents of a .resx file.

<data name="iconclip" type="System.Resources.ResXFileRef, System.Windows.Forms">
 <value>lookout.bmp;System.Drawing.Bitmap, System.Drawing</value>
<data name="mailbackground" type="System.Resources.ResXFileRef, System.Windows.Forms">
 <value>mailbackground.bmp;System.Drawing.Bitmap, System.Drawing</value>
<data name="xplogo" type="System.Resources.ResXFileRef, System.Windows.Forms">
 <value>xplogo.png;System.Drawing.Bitmap, System.Drawing</value>

For more information on the format of a .resx file, see Resources in .Resx File Format.


Namespace: System.Resources

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

ResXFileRef Members | System.Resources Namespace | Resources in .Resx File Format