Deployment Tools Foundation
Resource Class
Represents a Win32 resource which can be loaded from and saved to a PE file.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class Resource
Public Class Resource
public ref class Resource
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
Resource(ResourceType, String, Int32) |
Creates a new Resource object without any data. The data can be later loaded from a file.
|
|
Resource(ResourceType, String, Int32, array<Byte>[]()[]) |
Creates a new Resource object with data. The data can be later saved to a file.
|
|
Data |
Gets or sets the raw data of the resource.
|
|
Equals(Object) |
Tests if type, name, and locale of this Resource object match another Resource object.
(Overrides Object.Equals(Object).) |
|
Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode()()() |
Gets a hash code for this Resource object.
(Overrides Object.GetHashCode()()().) |
|
GetType()()() | Gets the Type of the current instance. (Inherited from Object.) |
|
Load(String) |
Loads the resource data from a file. The file is searched for a resource with matching type, name, and locale.
|
|
Locale |
Gets or sets the locale of the resource.
|
|
MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Name |
Gets or sets the name of the resource. For a numeric resource identifier, the decimal number is prefixed with a "#".
|
|
ResourceType |
Gets or sets the type of the resource. This may be one of the ResourceType constants
or a user-defined type name.
|
|
Save(String) |
Saves the resource to a file. Any existing resource data with matching type, name, and locale is overwritten.
|
|
ToString()()() | (Inherited from Object.) |
Inheritance Hierarchy
Object | ||
Resource | ||
VersionResource |