ResourceSet Constructor (String)

 

Creates a new instance of the ResourceSet class using the system default ResourceReader that opens and reads resources from the given file.

Namespace:   System.Resources
Assembly:  mscorlib (in mscorlib.dll)

new : 
        fileName:string -> ResourceSet

Parameters

fileName
Type: System.String

Resource file to read.

Exception Condition
ArgumentNullException

The fileName parameter is null.

The following code example defines a new instance of the ResourceSet class for a specific file, iterates through the resources used by that file, and displays their contents to the console.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: