_Type.ToString _Type.ToString _Type.ToString _Type.ToString Method

定义

为 COM 对象提供对 ToString() 方法的版本无关的访问。Provides COM objects with version-independent access to the ToString() method.

public:
 System::String ^ ToString();
public string ToString ();
abstract member ToString : unit -> string
Public Function ToString () As String

返回

表示当前 String 的名称的 TypeA String representing the name of the current Type.

注解

此方法用于访问托管类到从非托管代码,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.ToString方法返回的当前名称TypeThe Type.ToString method returns the name of the current Type.

适用于