Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

48 lines
1.5 KiB
C#

// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: IResourceWriter
**
** <OWNER>[....]</OWNER>
**
**
** 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();
}
}