IStringable 介面

定義

提供將目前物件表示為字串的方法。

public interface class IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2520162132, 36534, 18672, 171, 206, 193, 178, 17, 230, 39, 195)]
struct IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.Guid(2520162132, 36534, 18672, 171, 206, 193, 178, 17, 230, 39, 195)]
public interface IStringable
Public Interface IStringable
衍生
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.FoundationContract (已於 v1.0 引進)

備註

重要

Managed 類型不應該實作 IStringable 介面。 如需詳細資訊,請參閱 Object.ToString 方法

方法

ToString()

取得表示目前 物件的字串。

適用於