mscorlib(4.0.0.0) API with additions
|
Enumerates the resources in a binary resources (.resources) file by reading sequential resource name/value pairs. Security Note: Calling methods in this class with untrusted data is a security risk. Call the methods in the class only with trusted data. For more information, see Untrusted Data Security Risks. More...
Public Member Functions | |
ResourceReader (string fileName) | |
Initializes a new instance of the T:System.Resources.ResourceReader class for the specified named resource file. More... | |
ResourceReader (Stream stream) | |
Initializes a new instance of the T:System.Resources.ResourceReader class for the specified stream. More... | |
void | Close () |
Releases all operating system resources associated with this T:System.Resources.ResourceReader object. More... | |
void | Dispose () |
Releases all resources used by the current instance of the T:System.Resources.ResourceReader class. More... | |
IDictionaryEnumerator | GetEnumerator () |
Returns an enumerator for this T:System.Resources.ResourceReader object. More... | |
void | GetResourceData (string resourceName, out string resourceType, out byte[] resourceData) |
Retrieves the type name and data of a named resource from an open resource file or stream. More... | |
Enumerates the resources in a binary resources (.resources) file by reading sequential resource name/value pairs. Security Note: Calling methods in this class with untrusted data is a security risk. Call the methods in the class only with trusted data. For more information, see Untrusted Data Security Risks.
Definition at line 17 of file ResourceReader.cs.
System.Resources.ResourceReader.ResourceReader | ( | string | fileName | ) |
Initializes a new instance of the T:System.Resources.ResourceReader class for the specified named resource file.
fileName | The path and name of the resource file to read. filename is not case-sensitive. |
T:System.ArgumentNullException | The fileName parameter is null . |
T:System.IO.FileNotFoundException | The file cannot be found. |
T:System.IO.IOException | An I/O error has occurred. |
T:System.BadImageFormatException | The resource file has an invalid format. For example, the length of the file may be zero. |
Definition at line 265 of file ResourceReader.cs.
System.Resources.ResourceReader.ResourceReader | ( | Stream | stream | ) |
Initializes a new instance of the T:System.Resources.ResourceReader class for the specified stream.
stream | The input stream for reading resources. |
T:System.ArgumentException | The stream parameter is not readable. |
T:System.ArgumentNullException | The stream parameter is null . |
T:System.IO.IOException | An I/O error has occurred while accessing stream . |
Definition at line 286 of file ResourceReader.cs.
void System.Resources.ResourceReader.Close | ( | ) |
Releases all operating system resources associated with this T:System.Resources.ResourceReader object.
Implements System.Resources.IResourceReader.
Definition at line 312 of file ResourceReader.cs.
void System.Resources.ResourceReader.Dispose | ( | ) |
Releases all resources used by the current instance of the T:System.Resources.ResourceReader class.
Implements System.IDisposable.
Definition at line 318 of file ResourceReader.cs.
IDictionaryEnumerator System.Resources.ResourceReader.GetEnumerator | ( | ) |
Returns an enumerator for this T:System.Resources.ResourceReader object.
T:System.InvalidOperationException | The reader has been closed or disposed, and cannot be accessed. |
Implements System.Collections.IEnumerable.
Definition at line 397 of file ResourceReader.cs.
void System.Resources.ResourceReader.GetResourceData | ( | string | resourceName, |
out string | resourceType, | ||
out byte [] | resourceData | ||
) |
Retrieves the type name and data of a named resource from an open resource file or stream.
resourceName | The name of a resource. |
resourceType | When this method returns, contains a string that represents the type name of the retrieved resource (see the Remarks section for details). This parameter is passed uninitialized. |
resourceData | When this method returns, contains a byte array that is the binary representation of the retrieved type. This parameter is passed uninitialized. |
T:System.ArgumentNullException | resourceName is null . |
T:System.ArgumentException | resourceName does not exist. |
T:System.BadImageFormatException | resourceName has an invalid type. |
T:System.FormatException | The retrieved resource data is corrupt. |
T:System.InvalidOperationException | The current T:System.Resources.ResourceReader object is not initialized, probably because it is closed. |
Definition at line 1083 of file ResourceReader.cs.