Export (0) Print
Expand All

ResXFileRef Class

Represents a link to an external resource.

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

System.Object
   System.Resources.ResXFileRef

[Visual Basic]
<Serializable>
Public Class ResXFileRef
[C#]
[Serializable]
public class ResXFileRef
[C++]
[Serializable]
public __gc class ResXFileRef
[JScript]
public
   Serializable
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.

Remarks

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>
<data name="mailbackground" type="System.Resources.ResXFileRef, System.Windows.Forms">
 <value>mailbackground.bmp;System.Drawing.Bitmap, System.Drawing</value>
</data>
<data name="xplogo" type="System.Resources.ResXFileRef, System.Windows.Forms">
 <value>xplogo.png;System.Drawing.Bitmap, System.Drawing</value>
</data>

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

Requirements

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

Show:
© 2014 Microsoft