IFormatterConverter.Convert Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts a value to a given type.
Overloads
Convert(Object, Type) |
Converts a value to the given Type. |
Convert(Object, TypeCode) |
Converts a value to the given TypeCode. |
Convert(Object, Type)
Converts a value to the given Type.
public:
System::Object ^ Convert(System::Object ^ value, Type ^ type);
public object Convert (object value, Type type);
abstract member Convert : obj * Type -> obj
Public Function Convert (value As Object, type As Type) As Object
Parameters
- value
- Object
The object to be converted.
Returns
The converted value
.
Applies to
Convert(Object, TypeCode)
Converts a value to the given TypeCode.
public:
System::Object ^ Convert(System::Object ^ value, TypeCode typeCode);
public object Convert (object value, TypeCode typeCode);
abstract member Convert : obj * TypeCode -> obj
Public Function Convert (value As Object, typeCode As TypeCode) As Object
Parameters
- value
- Object
The object to be converted.
Returns
The converted value
.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.