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