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)