Skip to content

VersionResource Class

A subclass of Resource which provides specific methods for manipulating the resource data.

MethodDescription
Add(locale)Adds a new version string table for a locale.
Clear()Removes all string tables from the version resource.
Contains(locale)Checks if a version string table exists for a given locale.
CopyTo(array, arrayIndex)Copies the version string tables to an array, starting at a particular array index.
GetEnumerator()Gets an enumerator that can iterate over the version string tables in the collection.
Remove(locale)Removes a version string table for a locale.
PropertyDescription
BuildTypesGets or sets a bitmask that specifies the build types of the file.
CountGets the number string tables in the version resource.
DataGets or sets the raw data of the resource. The data is in the format of the VS_VERSIONINFO structure.
FileSubtypeGets or sets the specific type of the file.
FileTypeGets or sets the general type of the file.
FileVersionGets or sets the binary locale-independent file version of the version resource.
ItemGets the string table for a specific locale, or null if there is no table for that locale.
ProductVersionGets or sets the binary locale-independent product version of the version resource.
TimestampGets or sets the binary creation date and time.

The resource is of type «see P:WixToolset.Dtf.Resources.ResourceType.Version» (RT_VERSION). WixToolset.Dtf.Resources.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Adds a new version string table for a locale.

public VersionStringTable Add(
int locale
)
ParameterTypeDescription
localeintLocale of the table

VersionStringTable The new string table, or the existing table if the locale already existed.

Removes all string tables from the version resource.

public void Clear()

Checks if a version string table exists for a given locale.

public bool Contains(
int locale
)
ParameterTypeDescription
localeintLocale to search for

bool True if a string table was found for the locale; false otherwise.

Copies the version string tables to an array, starting at a particular array index.

public void CopyTo(
VersionStringTable[] array,
int arrayIndex
)
ParameterTypeDescription
arrayVersionStringTable[]The one-dimensional Array that is the destination of the elements copied from the collection. The Array must have zero-based indexing.
arrayIndexintThe zero-based index in array at which copying begins.

Gets an enumerator that can iterate over the version string tables in the collection.

public IEnumerator<WixToolset.Dtf.Resources.VersionStringTable> GetEnumerator()

IEnumerator<WixToolset.Dtf.Resources.VersionStringTable> An enumerator that returns «see T:WixToolset.Dtf.Resources.VersionStringTable» objects.

Removes a version string table for a locale.

public void Remove(
int locale
)
ParameterTypeDescription
localeintLocale of the table

Gets or sets a bitmask that specifies the build types of the file.

public VersionBuildTypes BuildTypes { get; set; }

Gets the number string tables in the version resource.

public int Count { get; set; }

Gets or sets the raw data of the resource. The data is in the format of the VS_VERSIONINFO structure.

public System.Byte[] Data { get; set; }

Gets or sets the specific type of the file.

public VersionFileSubtype FileSubtype { get; set; }

Gets or sets the general type of the file.

public VersionFileType FileType { get; set; }

Gets or sets the binary locale-independent file version of the version resource.

public System.Version FileVersion { get; set; }

Gets the string table for a specific locale, or null if there is no table for that locale.

public VersionStringTable Item { get; set; }
  • M:WixToolset.Dtf.Resources.VersionResource.Add(System.Int32)
  • M:WixToolset.Dtf.Resources.VersionResource.Remove(System.Int32)

Gets or sets the binary locale-independent product version of the version resource.

public System.Version ProductVersion { get; set; }

Gets or sets the binary creation date and time.

public System.DateTime Timestamp { get; set; }