1 <?xml version="1.0" encoding="utf-8"?><doc>
3 <name>System.Resources.Writer</name>
6 <member name="T:System.Resources.ResourceWriter">
7 <summary>Writes resources in the system-default format to an output file or an output stream. This class cannot be inherited.</summary>
9 <member name="M:System.Resources.ResourceWriter.#ctor(System.IO.Stream)">
10 <summary>Initializes a new instance of the <see cref="T:System.Resources.ResourceWriter"></see> class that writes the resources to the provided stream.</summary>
11 <param name="stream">The output stream.</param>
12 <exception cref="T:System.ArgumentException">The <paramref name="stream">stream</paramref> parameter is not writable.</exception>
13 <exception cref="T:System.ArgumentNullException">The <paramref name="stream">stream</paramref> parameter is <see langword="null"></see>.</exception>
15 <member name="M:System.Resources.ResourceWriter.#ctor(System.String)">
16 <summary>Initializes a new instance of the <see cref="T:System.Resources.ResourceWriter"></see> class that writes the resources to the specified file.</summary>
17 <param name="fileName">The output file name.</param>
18 <exception cref="T:System.ArgumentNullException">The <paramref name="fileName">fileName</paramref> parameter is <see langword="null"></see>.</exception>
20 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.Byte[])">
21 <summary>Adds a named resource specified as a byte array to the list of resources to be written.</summary>
22 <param name="name">The name of the resource.</param>
23 <param name="value">Value of the resource as an 8-bit unsigned integer array.</param>
24 <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="System.Resources.ResourceWriter"></see>.</exception>
25 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is <see langword="null"></see>.</exception>
26 <exception cref="T:System.InvalidOperationException">This <see cref="System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
28 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.IO.Stream)">
29 <summary>Adds a named resource specified as a stream to the list of resources to be written.</summary>
30 <param name="name">The name of the resource to add.</param>
31 <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>
32 <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="System.Resources.ResourceWriter"></see>.
34 The stream does not support the <see cref="System.IO.Stream.Length"></see> property.</exception>
35 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> or <paramref name="value">value</paramref> is <see langword="null"></see>.</exception>
36 <exception cref="T:System.InvalidOperationException">This <see cref="System.Resources.ResourceWriter"></see> has been closed.</exception>
38 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.Object)">
39 <summary>Adds a named resource specified as an object to the list of resources to be written.</summary>
40 <param name="name">The name of the resource.</param>
41 <param name="value">The value of the resource.</param>
42 <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="System.Resources.ResourceWriter"></see>.</exception>
43 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is <see langword="null"></see>.</exception>
44 <exception cref="T:System.InvalidOperationException">This <see cref="System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
46 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.String)">
47 <summary>Adds a string resource to the list of resources to be written.</summary>
48 <param name="name">The name of the resource.</param>
49 <param name="value">The value of the resource.</param>
50 <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>
51 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is <see langword="null"></see>.</exception>
52 <exception cref="T:System.InvalidOperationException">This <see cref="System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
54 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.IO.Stream,System.Boolean)">
55 <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>
56 <param name="name">The name of the resource to add.</param>
57 <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>
58 <param name="closeAfterWrite"><see langword="true"></see> to close the stream after the <see cref="M:System.Resources.ResourceWriter.Generate"></see> method is called; otherwise, <see langword="false"></see>.</param>
59 <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="System.Resources.ResourceWriter"></see>.
61 The stream does not support the <see cref="System.IO.Stream.Length"></see> property.</exception>
62 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref> or <paramref name="value">value</paramref> is <see langword="null"></see>.</exception>
63 <exception cref="T:System.InvalidOperationException">This <see cref="System.Resources.ResourceWriter"></see> has been closed.</exception>
65 <member name="M:System.Resources.ResourceWriter.AddResourceData(System.String,System.String,System.Byte[])">
66 <summary>Adds a unit of data as a resource to the list of resources to be written.</summary>
67 <param name="name">A name that identifies the resource that contains the added data.</param>
68 <param name="typeName">The type name of the added data.</param>
69 <param name="serializedData">A byte array that contains the binary representation of the added data.</param>
70 <exception cref="T:System.ArgumentNullException"><paramref name="name">name</paramref>, <paramref name="typeName">typeName</paramref>, or <paramref name="serializedData">serializedData</paramref> is <see langword="null"></see>.</exception>
71 <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="System.Resources.ResourceWriter"></see> object.</exception>
72 <exception cref="T:System.InvalidOperationException">The current <see cref="System.Resources.ResourceWriter"></see> object is not initialized. The probable cause is that the <see cref="System.Resources.ResourceWriter"></see> object is closed.</exception>
74 <member name="M:System.Resources.ResourceWriter.Close">
75 <summary>Saves the resources to the output stream and then closes it.</summary>
76 <exception cref="T:System.IO.IOException">An I/O error has occurred.</exception>
77 <exception cref="T:System.Runtime.Serialization.SerializationException">An error has occurred during serialization of the object.</exception>
79 <member name="M:System.Resources.ResourceWriter.Dispose">
80 <summary>Allows users to close the resource file or stream, explicitly releasing resources.</summary>
81 <exception cref="T:System.IO.IOException">An I/O error has occurred.</exception>
82 <exception cref="T:System.Runtime.Serialization.SerializationException">An error has occurred during serialization of the object.</exception>
84 <member name="M:System.Resources.ResourceWriter.Generate">
85 <summary>Saves all resources to the output stream in the system default format.</summary>
86 <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
87 <exception cref="T:System.Runtime.Serialization.SerializationException">An error occurred during serialization of the object.</exception>
88 <exception cref="T:System.InvalidOperationException">This <see cref="System.Resources.ResourceWriter"></see> has been closed and its hash table is unavailable.</exception>
90 <member name="P:System.Resources.ResourceWriter.TypeNameConverter">
91 <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>
92 <returns>The type that is encapsulated by the delegate.</returns>
94 <member name="T:System.Resources.IResourceWriter">
95 <summary>Provides the base functionality for writing resources to an output file or stream.</summary>
97 <member name="M:System.Resources.IResourceWriter.AddResource(System.String,System.Byte[])">
98 <summary>Adds an 8-bit unsigned integer array as a named resource to the list of resources to be written.</summary>
99 <param name="name">Name of a resource.</param>
100 <param name="value">Value of a resource as an 8-bit unsigned integer array.</param>
101 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is <see langword="null"></see>.</exception>
103 <member name="M:System.Resources.IResourceWriter.AddResource(System.String,System.Object)">
104 <summary>Adds a named resource of type <see cref="T:System.Object"></see> to the list of resources to be written.</summary>
105 <param name="name">The name of the resource.</param>
106 <param name="value">The value of the resource.</param>
107 <exception cref="T:System.ArgumentNullException">The <paramref name="name">name</paramref> parameter is <see langword="null"></see>.</exception>
109 <member name="M:System.Resources.IResourceWriter.AddResource(System.String,System.String)">
110 <summary>Adds a named resource of type <see cref="T:System.String"></see> to the list of resources to be written.</summary>
111 <param name="name">The name of the resource.</param>
112 <param name="value">The value of the resource.</param>
113 <exception cref="T:System.ArgumentException">The <paramref name="name">name</paramref> parameter is <see langword="null"></see>.</exception>
115 <member name="M:System.Resources.IResourceWriter.Close">
116 <summary>Closes the underlying resource file or stream, ensuring all the data has been written to the file.</summary>
118 <member name="M:System.Resources.IResourceWriter.Generate">
119 <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>