Skip to content

FeatureInfoCollection Class

Accessor for information about features within the context of an installation session.

Methods

MethodDescription
Contains(feature)Checks if the collection contains a feature.
CopyTo(array, arrayIndex)Copies the features into an array.
GetEnumerator()Enumerates the features in the collection.

Properties

PropertyDescription
CountGets the number of features defined for the product.
ItemGets information about a feature within the context of an installation session.
WixToolset.Dtf.WindowsInstaller.dll version 5.0.0+41e11442b2ca93e444b60213b5ae99dcbab787d8

Contains(feature) Method {#contains_feature}

Checks if the collection contains a feature.

Declaration

public bool Contains(
string feature
)

Parameters

ParameterTypeDescription
featurestringname of the feature

Return value

bool true if the feature is in the collection, else false

CopyTo(array, arrayIndex) Method {#copyto_array_arrayindex}

Copies the features into an array.

Declaration

public void CopyTo(
FeatureInfo[] array,
int arrayIndex
)

Parameters

ParameterTypeDescription
arrayFeatureInfo[]array that receives the features
arrayIndexintoffset into the array

GetEnumerator() Method {#getenumerator_nop}

Enumerates the features in the collection.

Declaration

public IEnumerator<WixToolset.Dtf.WindowsInstaller.FeatureInfo> GetEnumerator()

Return value

IEnumerator<WixToolset.Dtf.WindowsInstaller.FeatureInfo> an enumerator over all features in the collection

Count Property {#count}

Gets the number of features defined for the product.

Declaration

public int Count { get; set; }

Item Property {#item}

Gets information about a feature within the context of an installation session.

Declaration

public FeatureInfo Item[
string feature
] { get; set; }

Parameters

ParameterTypeDescription
featurestringname of the feature