Editare

Partajați prin


ResourceSet.ReadResources Method

Definition

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

protected:
 virtual void ReadResources();
protected virtual void ReadResources ();
abstract member ReadResources : unit -> unit
override this.ReadResources : unit -> unit
Protected Overridable Sub 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(String) or GetObject(String). 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.

Applies to