FrameworkName.ToString 方法

定义

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

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

返回

表示此 FrameworkName 对象的字符串。A string that represents this FrameworkName object.

注解

ToString 方法返回的字符串具有以下格式:The string returned by the ToString method has the following format:

标识符,版本 =Version[,profile =profile]identifier, Version=version[, Profile=profile]

其中标识符对应于 Identifier 属性,version 等效于对 Version 属性的值调用 Version.ToStringprofileProfile 属性相对应。where identifier corresponds to the Identifier property, version is equivalent to calling Version.ToString on the value of the Version property, and profile corresponds to the Profile property. 如果尚未将配置文件分配给 FrameworkName 对象,则返回的字符串中将不包含该配置文件组件。If a profile has not been assigned to the FrameworkName object, the profile component is not included in the returned string.

ToString 方法返回的值与 FullName 属性的值相同。The value returned by the ToString method is identical to the value of the FullName property.

适用于