Export (0) Print
Expand All

ResourceSet Class

Stores all the resources localized for one particular culture, ignoring all other cultures, including any fallback rules.

System.Object
  System.Resources.ResourceSet

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

[ComVisibleAttribute(true)]
public class ResourceSet : IDisposable, 
	IEnumerable

The ResourceSet type exposes the following members.

  NameDescription
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResourceSet()Initializes a new instance of the ResourceSet class with default properties.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResourceSet(IResourceReader)Creates a new instance of the ResourceSet class using the specified resource reader.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResourceSet(Stream)Security Critical. Creates a new instance of a ResourceSet class that reads resources from the given stream.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ResourceSet(String)Security Critical. Creates a new instance of the ResourceSet class that opens and reads resources from the given file.
Top

  NameDescription
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360CloseCloses and releases any resources used by this ResourceSet.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360Dispose()Disposes of the resources (other than memory) used by the current instance of ResourceSet.
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360Dispose(Boolean)Releases resources (other than memory) associated with the current instance, closing internal managed objects if requested.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360Equals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360FinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetDefaultReaderReturns the preferred resource reader class for this kind of ResourceSet.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetEnumeratorReturns an IDictionaryEnumerator that can iterate through the ResourceSet.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetObject(String)Searches for a resource object with the specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetObject(String, Boolean)Searches for a resource object with the specified name in a case-insensitive manner, if requested.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetString(String)Searches for a String resource with the specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetString(String, Boolean)Searches for a String resource with the specified name in a case-insensitive manner, if requested.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360GetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ReadResourcesReads all the resources.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360ToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension MethodSupported by Silverlight for Windows PhoneAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360Cast<TResult>Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodSupported by Silverlight for Windows PhoneSupported by Xbox 360OfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Protected fieldSupported by Silverlight for Windows PhoneSupported by Xbox 360ReaderIndicates the IResourceReader used to read the resources.
Top

  NameDescription
Explicit interface implemetationPrivate methodSupported by Silverlight for Windows PhoneSupported by Xbox 360IEnumerable.GetEnumeratorReturns an IEnumerator in order to avoid a race condition with Dispose. This member is not intended to be used directly from your code.
Top

The ResourceSet class enumerates over an IResourceReader, loading every name and value. A custom IResourceReader can be used.

Notes to Inheritors

Derived classes of ResourceSet that use their own resource reader and writer should override GetDefaultReader to provide the appropriate functionality for interpreting the ResourceSet.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

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

Community Additions

ADD
Show:
© 2015 Microsoft