FrameworkName Constructor (String, Version, String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the FrameworkName class from a string, a Version object that identifies a .NET Framework version, and a profile name.

Namespace:   System.Runtime.Versioning
Assembly:  System (in System.dll)

new : 
        identifier:string *
        version:Version *
        profile:string -> FrameworkName

Parameters

identifier
Type: System.String

A string that identifies a .NET Framework version.

version
Type: System.Version

An object that contains .NET Framework version information.

profile
Type: System.String

A profile name.

Exception Condition
ArgumentException

identifier is String.Empty.

ArgumentNullException

identifier is null.

-or-

version is null.

The FrameworkName class requires that a Version object include at least a major and minor version number.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Return to top
Show: