NamedComponent.IFormattable.ToString 方法
Formats the value of the current instance using the specified format.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Private Function ToString ( _
format As String, _
formatProvider As IFormatProvider _
) As String Implements IFormattable.ToString
'用途
Dim instance As NamedComponent
Dim format As String
Dim formatProvider As IFormatProvider
Dim returnValue As String
returnValue = CType(instance, IFormattable).ToString(format, _
formatProvider)
string IFormattable.ToString(
string format,
IFormatProvider formatProvider
)
private:
virtual String^ ToString(
String^ format,
IFormatProvider^ formatProvider
) sealed = IFormattable::ToString
private abstract ToString :
format:string *
formatProvider:IFormatProvider -> string
private override ToString :
format:string *
formatProvider:IFormatProvider -> string
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。
參數
- format
型別:System.String
The format to use.
- formatProvider
型別:System.IFormatProvider
The provider to use to format the value.
傳回值
型別:System.String
The value of the current instance in the specified format.
實作
IFormattable.ToString(String, IFormatProvider)