Deployment Tools Foundation
VersionResource Class
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.Resources ► VersionResource
A subclass of Resource which provides specific methods for manipulating the resource data.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public sealed class VersionResource : Resource, ICollection<VersionStringTable>, IEnumerable<VersionStringTable>, IEnumerable
Public NotInheritable Class VersionResource _ Inherits Resource _ Implements ICollection(Of VersionStringTable), IEnumerable(Of VersionStringTable), _ IEnumerable
public ref class VersionResource sealed : public Resource, ICollection<VersionStringTable^>, IEnumerable<VersionStringTable^>, IEnumerable
![](collapse_all.gif)
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
![]() |
VersionResource(String, Int32) |
Creates a new VersionResource object without any data. The data can be later loaded from a file.
|
![]() |
VersionResource(String, Int32, array<Byte>[]()[]) |
Creates a new VersionResource object with data. The data can be later saved to a file.
|
![]() |
Add(Int32) |
Adds a new version string table for a locale.
|
![]() |
BuildTypes |
Gets or sets a bitmask that specifies the build types of the file.
|
![]() |
Clear()()() |
Removes all string tables from the version resource.
|
![]() |
Contains(Int32) |
Checks if a version string table exists for a given locale.
|
![]() |
CopyTo(array<VersionStringTable>[]()[], Int32) |
Copies the version string tables to an array, starting at a particular array index.
|
![]() |
Count |
Gets the number string tables in the version resource.
|
![]() |
Data |
Gets or sets the raw data of the resource. The data is in the format of the VS_VERSIONINFO structure.
(Overrides Resource.Data.) |
![]() |
Equals(Object) |
Tests if type, name, and locale of this Resource object match another Resource object.
(Inherited from Resource.) |
![]() |
FileSubtype |
Gets or sets the specific type of the file.
|
![]() |
FileType |
Gets or sets the general type of the file.
|
![]() |
FileVersion |
Gets or sets the binary locale-independent file version of the version resource.
|
![]() |
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.) |
![]() |
GetEnumerator()()() |
Gets an enumerator that can iterate over the version string tables in the collection.
|
![]() |
GetHashCode()()() |
Gets a hash code for this Resource object.
(Inherited from Resource.) |
![]() |
GetType()()() | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
Item[([(Int32])]) |
Gets the string table for a specific locale, or null if there is no table for that locale.
|
![]() |
Load(String) |
Loads the resource data from a file. The file is searched for a resource with matching type, name, and locale.
(Inherited from Resource.) |
![]() |
Locale |
Gets or sets the locale of the resource.
(Inherited from 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 "#".
(Inherited from Resource.) |
![]() |
ProductVersion |
Gets or sets the binary locale-independent product version of the version resource.
|
![]() |
Remove(Int32) |
Removes a version string table for a locale.
|
![]() |
ResourceType |
Gets or sets the type of the resource. This may be one of the ResourceType constants
or a user-defined type name.
(Inherited from Resource.) |
![]() |
Save(String) |
Saves the resource to a file. Any existing resource data with matching type, name, and locale is overwritten.
(Inherited from Resource.) |
![]() |
Timestamp |
Gets or sets the binary creation date and time.
|
![]() |
ToString()()() | (Inherited from Object.) |
![](collapse_all.gif)
The resource is of type Version (RT_VERSION).