Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FrameworkName::Inequality Operator

.NET Framework 4.6 and 4.5

Returns a value that indicates whether two FrameworkName objects represent different .NET Framework versions.

Namespace:  System.Runtime.Versioning
Assemblies:   System.Runtime.Extensions (in System.Runtime.Extensions.dll)
  System (in System.dll)

public:
static bool operator !=(
	FrameworkName^ left, 
	FrameworkName^ right
)

Parameters

left
Type: System.Runtime.Versioning::FrameworkName

The first object to compare.

right
Type: System.Runtime.Versioning::FrameworkName

The second object to compare.

Return Value

Type: System::Boolean
true if the left and right parameters represent different .NET Framework versions; otherwise, false.

The Inequality method defines the operation of the inequality operator for FrameworkName objects.

Languages that do not support custom operators can test for inequality by calling the FrameworkName::Equals(FrameworkName) method and reversing its value.

The following example uses the equality operator to determine whether a FrameworkName object that represents the running version of the .NET Framework is equal to a supported version of the .NET Framework. Note that the two versions are not equal because they do not have identical version numbers.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft