FrameworkName 类

定义

表示 .NET Framework 的版本名称。Represents the name of a version of the .NET Framework.

public ref class FrameworkName sealed : IEquatable<System::Runtime::Versioning::FrameworkName ^>
[System.Serializable]
public sealed class FrameworkName : IEquatable<System.Runtime.Versioning.FrameworkName>
type FrameworkName = class
    interface IEquatable<FrameworkName>
Public NotInheritable Class FrameworkName
Implements IEquatable(Of FrameworkName)
继承
FrameworkName
属性
实现

构造函数

FrameworkName(String)

从包含 .NET Framework 版本信息的字符串初始化 FrameworkName 类的新实例。Initializes a new instance of the FrameworkName class from a string that contains information about a version of the .NET Framework.

FrameworkName(String, Version)

从标识 .NET Framework 版本的字符串和 FrameworkName 对象初始化 Version 类的新实例。Initializes a new instance of the FrameworkName class from a string and a Version object that identify a .NET Framework version.

FrameworkName(String, Version, String)

从字符串、标识 .NET Framework 版本的 FrameworkName 对象以及配置文件名称初始化 Version 类的新实例。Initializes a new instance of the FrameworkName class from a string, a Version object that identifies a .NET Framework version, and a profile name.

属性

FullName

获取此 FrameworkName 对象的全名。Gets the full name of this FrameworkName object.

Identifier

获取此 FrameworkName 对象的标识符。Gets the identifier of this FrameworkName object.

Profile

获取此 FrameworkName 对象的配置文件名称。Gets the profile name of this FrameworkName object.

Version

获取此 FrameworkName 对象的版本。Gets the version of this FrameworkName object.

方法

Equals(FrameworkName)

返回一个值,该值指示此 FrameworkName 实例是否表示与指定的 FrameworkName 实例相同的 .NET Framework 版本。Returns a value that indicates whether this FrameworkName instance represents the same .NET Framework version as a specified FrameworkName instance.

Equals(Object)

返回一个值,该值指示此 FrameworkName 实例是否表示与指定的对象相同的 .NET Framework 版本。Returns a value that indicates whether this FrameworkName instance represents the same .NET Framework version as a specified object.

GetHashCode()

返回 FrameworkName 对象的哈希代码。Returns the hash code for the FrameworkName object.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回此 FrameworkName 对象的字符串表示形式。Returns the string representation of this FrameworkName object.

运算符

Equality(FrameworkName, FrameworkName)

返回一个值,该值指示两个 FrameworkName 对象是否表示相同的 .NET Framework 版本。Returns a value that indicates whether two FrameworkName objects represent the same .NET Framework version.

Inequality(FrameworkName, FrameworkName)

返回一个值,该值指示两个 FrameworkName 对象是否表示不同的 .NET Framework 版本。Returns a value that indicates whether two FrameworkName objects represent different .NET Framework versions.

适用于