IConvertible.ToType(Type, IFormatProvider) 方法
定义
public:
System::Object ^ ToType(Type ^ conversionType, IFormatProvider ^ provider);
public object ToType (Type conversionType, IFormatProvider provider);
public object ToType (Type conversionType, IFormatProvider? provider);
abstract member ToType : Type * IFormatProvider -> obj
Public Function ToType (conversionType As Type, provider As IFormatProvider) As Object
参数
- provider
- IFormatProvider
IFormatProvider 接口实现,提供区域性特定的格式设置信息。An IFormatProvider interface implementation that supplies culture-specific formatting information.
返回
其值与此实例值等效的 conversionType
类型的 Object 实例。An Object instance of type conversionType
whose value is equivalent to the value of this instance.