1 <?xml version="1.0" encoding="utf-8"?>
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" /> parameter is <see langword="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" /> 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" /> parameter is <see langword="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" /> 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" /> parameter is <see langword="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)" /> 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" /> 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" /> parameter is not writable.</exception>
41 <exception cref="T:System.ArgumentNullException">The <paramref name="stream" /> parameter is <see langword="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" /> 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" /> parameter is <see langword="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">
53 <paramref name="name" /> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter" />.</exception>
54 <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
55 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter" /> has been closed and its hash table is unavailable.</exception>
57 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.IO.Stream)">
58 <summary>Adds a named resource specified as a stream to the list of resources to be written.</summary>
59 <param name="name">The name of the resource to add.</param>
60 <param name="value">The value of the resource to add. The resource must support the <see cref="P:System.IO.Stream.Length" /> property.</param>
61 <exception cref="T:System.ArgumentException">
62 <paramref name="name" /> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter" />.
64 The stream does not support the <see cref="P:System.IO.Stream.Length" /> property.</exception>
65 <exception cref="T:System.ArgumentNullException">
66 <paramref name="name" /> or <paramref name="value" /> is <see langword="null" />.</exception>
67 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter" /> has been closed.</exception>
69 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.IO.Stream,System.Boolean)">
70 <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" /> method is called.</summary>
71 <param name="name">The name of the resource to add.</param>
72 <param name="value">The value of the resource to add. The resource must support the <see cref="P:System.IO.Stream.Length" /> property.</param>
73 <param name="closeAfterWrite">
74 <see langword="true" /> to close the stream after the <see cref="M:System.Resources.ResourceWriter.Generate" /> method is called; otherwise, <see langword="false" />.</param>
75 <exception cref="T:System.ArgumentException">
76 <paramref name="name" /> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter" />.
78 The stream does not support the <see cref="P:System.IO.Stream.Length" /> property.</exception>
79 <exception cref="T:System.ArgumentNullException">
80 <paramref name="name" /> or <paramref name="value" /> is <see langword="null" />.</exception>
81 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter" /> has been closed.</exception>
83 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.Object)">
84 <summary>Adds a named resource specified as an object to the list of resources to be written.</summary>
85 <param name="name">The name of the resource.</param>
86 <param name="value">The value of the resource.</param>
87 <exception cref="T:System.ArgumentException">
88 <paramref name="name" /> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter" />.</exception>
89 <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
90 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter" /> has been closed and its hash table is unavailable.</exception>
92 <member name="M:System.Resources.ResourceWriter.AddResource(System.String,System.String)">
93 <summary>Adds a string resource to the list of resources to be written.</summary>
94 <param name="name">The name of the resource.</param>
95 <param name="value">The value of the resource.</param>
96 <exception cref="T:System.ArgumentException">
97 <paramref name="name" /> (or a name that varies only by capitalization) has already been added to this ResourceWriter.</exception>
98 <exception cref="T:System.ArgumentNullException">The <paramref name="name" /> parameter is <see langword="null" />.</exception>
99 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter" /> has been closed and its hash table is unavailable.</exception>
101 <member name="M:System.Resources.ResourceWriter.AddResourceData(System.String,System.String,System.Byte[])">
102 <summary>Adds a unit of data as a resource to the list of resources to be written.</summary>
103 <param name="name">A name that identifies the resource that contains the added data.</param>
104 <param name="typeName">The type name of the added data.</param>
105 <param name="serializedData">A byte array that contains the binary representation of the added data.</param>
106 <exception cref="T:System.ArgumentNullException">
107 <paramref name="name" />, <paramref name="typeName" />, or <paramref name="serializedData" /> is <see langword="null" />.</exception>
108 <exception cref="T:System.ArgumentException">
109 <paramref name="name" /> (or a name that varies only by capitalization) has already been added to this <see cref="T:System.Resources.ResourceWriter" /> object.</exception>
110 <exception cref="T:System.InvalidOperationException">The current <see cref="T:System.Resources.ResourceWriter" /> object is not initialized. The probable cause is that the <see cref="T:System.Resources.ResourceWriter" /> object is closed.</exception>
112 <member name="M:System.Resources.ResourceWriter.Close">
113 <summary>Saves the resources to the output stream and then closes it.</summary>
114 <exception cref="T:System.IO.IOException">An I/O error has occurred.</exception>
115 <exception cref="T:System.Runtime.Serialization.SerializationException">An error has occurred during serialization of the object.</exception>
117 <member name="M:System.Resources.ResourceWriter.Dispose">
118 <summary>Allows users to close the resource file or stream, explicitly releasing resources.</summary>
119 <exception cref="T:System.IO.IOException">An I/O error has occurred.</exception>
120 <exception cref="T:System.Runtime.Serialization.SerializationException">An error has occurred during serialization of the object.</exception>
122 <member name="M:System.Resources.ResourceWriter.Generate">
123 <summary>Saves all resources to the output stream in the system default format.</summary>
124 <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
125 <exception cref="T:System.Runtime.Serialization.SerializationException">An error occurred during serialization of the object.</exception>
126 <exception cref="T:System.InvalidOperationException">This <see cref="T:System.Resources.ResourceWriter" /> has been closed and its hash table is unavailable.</exception>
128 <member name="P:System.Resources.ResourceWriter.TypeNameConverter">
129 <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>
130 <returns>The type that is encapsulated by the delegate.</returns>