ResourceCollection Class

Microsoft Deployment Tools

Deployment Tools Foundation ResourceCollection Class
Deployment Tools Foundation NamespacesMicrosoft.Deployment.ResourcesResourceCollection
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)
Determines whether the specified Object is equal to the current Object.
(Inherited from 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.)
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. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table.
(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:
  1. Create a new ResourceCollection
  2. Locate resources for the collection by calling one of the Find(String) methods
  3. 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.
  4. Read and/or edit data of the individual Resource objects using the methods on that class.
  5. 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) Version: 3.0.0.0 (3.5.1623.0)