Deployment Tools Foundation
ResourceCollection Class
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Resources ► ResourceCollection
Allows reading and editing of resource data in a Win32 PE file.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public class ResourceCollection : ICollection<Resource>, IEnumerable<Resource>, IEnumerable
Public Class ResourceCollection Implements ICollection(Of Resource), IEnumerable(Of Resource), IEnumerable
public ref class ResourceCollection : ICollection<Resource^>, IEnumerable<Resource^>, IEnumerable
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
ResourceCollection()()()() |
Creates a new, empty ResourceCollection.
|
|
Add(Resource) |
Adds a new item to the collection.
|
|
Clear()()()() |
Removes all resources from the collection.
|
|
Contains(Resource) |
Tests if the collection contains an item.
|
|
CopyTo(array<Resource>[]()[][], Int32) |
Copies the collection into an array.
|
|
Count |
Gets the number of resources in the collection.
|
|
Equals(Object) | (Inherited from Object.) |
|
Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Find(String) |
Locates all resources in a file, including all resource types and languages. For each located resource,
a Resource instance (or subclass) is added to the collection.
|
|
Find(String, ResourceType) |
Locates all resources in a file of a given type, including all languages. For each located resource,
a Resource instance (or subclass) is added to the collection.
|
|
Find(String, ResourceType, String) |
Locates all resources in a file of a given type and language. For each located resource,
a Resource instance (or subclass) is added to the collection.
|
|
GetEnumerator()()()() |
Gets an enumerator over all resources in the collection.
|
|
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf(Resource) |
Gets the index of an item in the collection.
|
|
Insert(Int32, Resource) |
Inserts a item into the collection.
|
|
Item[([( Int32])]) |
Gets or sets the element at the specified index.
|
|
Load(String) |
For all resources in the collection, loads their data from a resource file.
|
|
MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove(Resource) |
Removes an item to the collection.
|
|
Save(String) |
For all resources in the collection, saves their data to a resource file.
|
|
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
Remarks
To use this class:
- Create a new ResourceCollection
- Locate resources for the collection by calling one of the Find(String) methods
- Load data of one or more Resources from a file by calling the Load(String) method of the Resource class, or load them all at once (more efficient) with the Load(String) method of the ResourceCollection.
- Read and/or edit data of the individual Resource objects using the methods on that class.
- Save data of one or more Resources to a file by calling the Save(String) method of the Resource class, or save them all at once (more efficient) with the Save(String) method of the ResourceCollection.
Inheritance Hierarchy
Object | |
ResourceCollection |
Assembly: Microsoft.Deployment.Resources (Module: Microsoft.Deployment.Resources.dll) Version: 3.0.0.0 (3.9.1006.0)