1 <?xml version="1.0" encoding="utf-8"?><span>
4 <name>System.Resources.Writer</name>
7 <member name="T:System.Resources.IResourceWriter">
8 <summary>Provides the base functionality for writing resources to an output file or stream.</summary>
10 <member name="M:System.Resources.IResourceWriter.AddResource(System.String,System.Byte[])">
11 <summary>Adds an 8-bit unsigned integer array as a named resource to the list of resources to be written.</summary>
12 <param name="name">Name of a resource.</param>
13 <param name="value">Value of a resource as an 8-bit unsigned integer array.</param>
14 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is null.</exception>
16 <member name="M:System.Resources.IResourceWriter.AddResource(System.String,System.Object)">
17 <summary>Adds a named resource of type <see cref="T:System.Object"></see> to the list of resources to be written.</summary>
18 <param name="name">The name of the resource.</param>
19 <param name="value">The value of the resource.</param>
20 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is null.</exception>
22 <member name="M:System.Resources.IResourceWriter.AddResource(System.String,System.String)">
23 <summary>Adds a named resource of type <see cref="T:System.String"></see> to the list of resources to be written.</summary>
24 <param name="name">The name of the resource.</param>
25 <param name="value">The value of the resource.</param>
26 <exception cref="T:System.ArgumentException">The <paramref name="name">name</paramref> parameter is null.</exception>
28 <member name="M:System.Resources.IResourceWriter.Close">
29 <summary>Closes the underlying resource file or stream, ensuring all the data has been written to the file.</summary>
31 <member name="M:System.Resources.IResourceWriter.Generate">
32 <summary>Writes all the resources added by the <see cref="M:System.Resources.IResourceWriter.AddResource(System.String,System.String)"></see> method to the output file or stream.</summary>
34 <member name="T:System.Resources.ResourceWriter">
35 <summary>Writes resources in the system-default format to an output file or an output stream. This class cannot be inherited.</summary>
37 <member name="M:System.Resources.ResourceWriter.#ctor(System.IO.Stream)">
38 <summary>Initializes a new instance of the <see cref="T:System.Resources.ResourceWriter"></see> class that writes the resources to the provided stream.</summary>
39 <param name="stream">The output stream.</param>
40 <exception cref="T:System.ArgumentException">The <paramref name="stream">stream</paramref> parameter is not writable.</exception>
41 <exception cref="T:System.ArgumentNullException">The <paramref name="stream">stream</paramref> parameter is null.</exception>
43 <member name="M:System.Resources.ResourceWriter.#ctor(System.String)">
44 <summary>Initializes a new instance of the <see cref="T:System.Resources.ResourceWriter"></see> class that writes the resources to the specified file.</summary>
45 <param name="fileName">The output file name.</param>
46 <exception cref="T:System.ArgumentNullException">The <paramref name="fileName">fileName</paramref> parameter is null.</exception>
48 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.Byte[])">
49 <summary>Adds a named resource specified as a byte array to the list of resources to be written.</summary>
50 <param name="name">The name of the resource.</param>
51 <param name="value">Value of the resource as an 8-bit unsigned integer array.</param>
52 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter"></see>.</exception>
53 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is null.</exception>
54 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
56 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.IO.Stream)">
57 <summary>Adds a named resource specified as a stream to the list of resources to be written.</summary>
58 <param name="name">The name of the resource to add.</param>
59 <param name="value">The value of the resource to add. The resource must support the <see cref="P:System.IO.Stream.Length"></see> property.</param>
60 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter"></see>. -or- The stream does not support the <see cref="P:System.IO.Stream.Length"></see> property.</exception>
61 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> or <paramref name="value">value</paramref> is null.</exception>
62 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter"></see> has been closed.</exception>
64 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.Object)">
65 <summary>Adds a named resource specified as an object to the list of resources to be written.</summary>
66 <param name="name">The name of the resource.</param>
67 <param name="value">The value of the resource.</param>
68 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter"></see>.</exception>
69 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is null.</exception>
70 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
72 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.String)">
73 <summary>Adds a string resource to the list of resources to be written.</summary>
74 <param name="name">The name of the resource.</param>
75 <param name="value">The value of the resource.</param>
76 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> (or a name that varies only by capitalization) has already been added to this ResourceWriter.</exception>
77 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is null.</exception>
78 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
80 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.IO.Stream,System.Boolean)">
81 <summary>Adds a named resource specified as a stream to the list of resources to be written, and specifies whether the stream should be closed after the <see cref="M:System.Resources.ResourceWriter.Generate"></see> method is called.</summary>
82 <param name="name">The name of the resource to add.</param>
83 <param name="value">The value of the resource to add. The resource must support the <see cref="P:System.IO.Stream.Length"></see> property.</param>
84 <param name="closeAfterWrite">true to close the stream after the <see cref="M:System.Resources.ResourceWriter.Generate"></see> method is called; otherwise, false.</param>
85 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter"></see>. -or- The stream does not support the <see cref="P:System.IO.Stream.Length"></see> property.</exception>
86 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> or <paramref name="value">value</paramref> is null.</exception>
87 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter"></see> has been closed.</exception>
89 <member name="M:System.Resources.ResourceWriter.AddResourceData(System.String,System.String,System.Byte[])">
90 <summary>Adds a unit of data as a resource to the list of resources to be written.</summary>
91 <param name="name">A name that identifies the resource that contains the added data.</param>
92 <param name="typeName">The type name of the added data.</param>
93 <param name="serializedData">A byte array that contains the binary representation of the added data.</param>
94 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref>, <paramref name="typeName">typeName</paramref>, or <paramref name="serializedData">serializedData</paramref> is null.</exception>
95 <exception cref="T:System.ArgumentException"><paramref name="name">name</paramref> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter"></see> object.</exception>
96 <exception cref="T:System.InvalidOperationException">The current <see cref="T:System.Resources.ResourceWriter"></see> object is not initialized. The probable cause is that the <see cref="T:System.Resources.ResourceWriter"></see> object is closed.</exception>
98 <member name="M:System.Resources.ResourceWriter.Close">
99 <summary>Saves the resources to the output stream and then closes it.</summary>
100 <exception cref="T:System.IO.IOException">An I/O error has occurred.</exception>
101 <exception cref="T:System.Runtime.Serialization.SerializationException">An error has occurred during serialization of the object.</exception>
103 <member name="M:System.Resources.ResourceWriter.Dispose">
104 <summary>Allows users to close the resource file or stream, explicitly releasing resources.</summary>
105 <exception cref="T:System.IO.IOException">An I/O error has occurred.</exception>
106 <exception cref="T:System.Runtime.Serialization.SerializationException">An error has occurred during serialization of the object.</exception>
108 <member name="M:System.Resources.ResourceWriter.Generate">
109 <summary>Saves all resources to the output stream in the system default format.</summary>
110 <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
111 <exception cref="T:System.Runtime.Serialization.SerializationException">An error occurred during serialization of the object.</exception>
112 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
114 <member name="P:System.Resources.ResourceWriter.TypeNameConverter">
115 <summary>Gets or sets a delegate that enables resource assemblies to be written that target versions of the .NET Framework prior to the .NET Framework 4 by using qualified assembly names.</summary>
116 <returns>The type that is encapsulated by the delegate.</returns>