Point.IFormattable.ToString(String, IFormatProvider) 方法

定義

如需這個成員的說明,請參閱 ToString(String, IFormatProvider)For a description of this member, see ToString(String, IFormatProvider).

 virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ provider) = IFormattable::ToString;
string IFormattable.ToString (string format, IFormatProvider provider);
abstract member System.IFormattable.ToString : string * IFormatProvider -> string
override this.System.IFormattable.ToString : string * IFormatProvider -> string
Function ToString (format As String, provider As IFormatProvider) As String Implements IFormattable.ToString

參數

format
String

指定要使用格式的字串,若要使用針對 IFormattable 實作類型所定義的預設格式,則為 nullThe string specifying the format to use, or null to use the default format defined for the type of the IFormattable implementation.

provider
IFormatProvider

提供值格式資訊的物件,或用來從目前文化特性中取得數值格式資訊的 nullAn object that provides formatting information for the value, or null to obtain the numeric format information from the current culture.

傳回

String

字串,包含目前執行個體的值,且該值採用指定的格式。A string containing the value of the current instance in the specified format.

實作

備註

此結構代表 Windows 執行階段 (WinRT) 結構的 .NET 投影 PointThis struct represents the .NET projection of the Windows Runtime (WinRT) Point struct. 如需詳細資訊,請參閱 UWP API 參考中的 For more information, see Point in the UWP API reference.

適用於