ReadResources Method

ResourceSet.ReadResources Method ()


Reads all the resources and stores them in a Hashtable indicated in the Table property.

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

protected virtual void ReadResources()

Notes to Inheritors:

Derived classes of ResourceSet should explicitly call ReadResources to load all the resources from the IResourceReader into Table, generally either in the constructor or lazily on the first call to either GetString or GetObject. However, if your resource set and IResourceReader already have information about each other and have a more efficient way to load just a few select resources, this step can be skipped. To minimize working set, write your resource set in such a way that it queries your IResourceReader for only the resource values requested by your application.

.NET Framework
Available since 1.1
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft