Επεξεργασία

Κοινή χρήση μέσω


PreserializedResourceWriter Class

Definition

Provides APIs similar to ResourceWriter that can write pre-serialized resource data.

public ref class PreserializedResourceWriter sealed : System::Resources::IResourceWriter
public ref class PreserializedResourceWriter sealed : IDisposable, System::Resources::IResourceWriter
public sealed class PreserializedResourceWriter : System.Resources.IResourceWriter
public sealed class PreserializedResourceWriter : IDisposable, System.Resources.IResourceWriter
type PreserializedResourceWriter = class
    interface IResourceWriter
    interface IDisposable
type PreserializedResourceWriter = class
    interface IDisposable
    interface IResourceWriter
Public NotInheritable Class PreserializedResourceWriter
Implements IResourceWriter
Public NotInheritable Class PreserializedResourceWriter
Implements IDisposable, IResourceWriter
Inheritance
PreserializedResourceWriter
Implements

Constructors

PreserializedResourceWriter(Stream)

Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the provided stream.

PreserializedResourceWriter(String)

Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the specified file.

Methods

AddActivatorResource(String, Stream, String, Boolean)

Adds a resource of the specified type represented by a Stream value that is passed to the type's constructor when reading the resource.

AddBinaryFormattedResource(String, Byte[], String)
Obsolete.

Adds a resource of the specified type, represented by a byte array, that will be passed to BinaryFormatter when reading the resource.

AddResource(String, Byte[])

Adds a byte array as a named resource to the list of resources to be written to a file.

AddResource(String, Object)

Adds an object as a named resource to the list of resources to be written to a file.

AddResource(String, Stream, Boolean)

Adds a Stream as a named resource to the list of resources to be written to a file.

AddResource(String, String, String)

Adds a resource of the specified type represented by a string value.

AddResource(String, String)

Adds a string as a named resource to the list of resources to be written to a file.

AddTypeConverterResource(String, Byte[], String)

Adds a resource of the specified type represented by a byte array that is passed to the type's TypeConverter when reading the resource.

Close()

Calls Dispose() to dispose the resource writer.

Dispose()

Calls Generate() to write out all resources to the output stream in the system default format.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Generate()

Writes all resources to the output stream.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to