DriveInfo.ToString DriveInfo.ToString DriveInfo.ToString DriveInfo.ToString Method

定義

將磁碟名稱以字串方式傳回。Returns a drive name as a string.

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

傳回

磁碟的名稱。The name of the drive.

備註

這個方法Name會傳回屬性。This method returns the Name property.

適用於