Sets the assembly version range to match.
Namespace:
Gallio.Common.ReflectionAssembly: Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public void SetVersionRange( Version minVersion, Version maxVersion ) |
| Visual Basic (Declaration) |
|---|
Public Sub SetVersionRange ( _ minVersion As Version, _ maxVersion As Version _ ) |
Parameters
- minVersion
- Type: System..::.Version
The minimum assembly version to match inclusively, or null if there is no lower bound.
- maxVersion
- Type: System..::.Version
The maximum assembly version to match inclusively, or null if there is no upper bound.
Remarks
minVersion and maxVersion must either both be non-null or both be null.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentException | Thrown if minVersion is null but not maxVersion or vice-versa. Also thrown if minVersion is greater than maxVersion. |
