blob: ae41b84cd7c8ae085b17e3fb1d1e1d375e988707 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*============================================================
**
**
**
**
**
** Purpose: Default way to write strings to a COM+ resource
** file.
**
**
===========================================================*/
namespace System.Resources {
using System;
using System.IO;
[System.Runtime.InteropServices.ComVisible(true)]
public interface IResourceWriter : IDisposable
{
// Interface does not need to be marked with the serializable attribute
// Adds a string resource to the list of resources to be written to a file.
// They aren't written until WriteFile() is called.
//
void AddResource(String name, String value);
// Adds a resource to the list of resources to be written to a file.
// They aren't written until WriteFile() is called.
//
void AddResource(String name, Object value);
// Adds a named byte array as a resource to the list of resources to
// be written to a file. They aren't written until WriteFile() is called.
//
void AddResource(String name, byte[] value);
// Closes the underlying resource file.
void Close();
// After calling AddResource, this writes all resources to the output
// stream. This does NOT close the output stream.
void Generate();
}
}
|