Compartilhar via


NetFrameworkVersion Class

public final class NetFrameworkVersion
extends ExpandableStringEnum<NetFrameworkVersion>

Defines values for .NET framework version.

Field Summary

Modifier and Type Field and Description
static final NetFrameworkVersion V3_0

Static value v3.5 for NetFrameworkVersion.

static final NetFrameworkVersion V4_6

Static value v4.6 for NetFrameworkVersion.

Constructor Summary

Constructor Description
NetFrameworkVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetFrameworkVersion value.

Method Summary

Modifier and Type Method and Description
static NetFrameworkVersion fromString(String name)

Finds or creates a .NET Framework version based on the name.

static Collection<NetFrameworkVersion> values()

Gets known .NET framework versions.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

V3_0

public static final NetFrameworkVersion V3_0

Static value v3.5 for NetFrameworkVersion.

V4_6

public static final NetFrameworkVersion V4_6

Static value v4.6 for NetFrameworkVersion.

Constructor Details

NetFrameworkVersion

@Deprecated
public NetFrameworkVersion()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of NetFrameworkVersion value.

Method Details

fromString

public static NetFrameworkVersion fromString(String name)

Finds or creates a .NET Framework version based on the name.

Parameters:

name - a name

Returns:

an instance of NetFrameworkVersion

values

public static Collection values()

Gets known .NET framework versions.

Returns:

known .NET framework versions

Applies to