TypeConverter.ConvertFrom 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.
Overloads
ConvertFrom(Object) |
Obsolete.
Calls ConvertFrom(CultureInfo, Object) with the current culture information and |
ConvertFrom(CultureInfo, Object) |
Obsolete.
When implemented in a derived class, converts an object that is a version of |
ConvertFrom(Object)
Caution
ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.
Calls ConvertFrom(CultureInfo, Object) with the current culture information and o
.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")]
public virtual object ConvertFrom (object o);
abstract member ConvertFrom : obj -> obj
override this.ConvertFrom : obj -> obj
Parameters
- o
- System.Object
The object to convert.
Returns
- Attributes
-
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute
Applies to
ConvertFrom(CultureInfo, Object)
Caution
ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.
When implemented in a derived class, converts an object that is a version of value
and that can be cast to the target type.
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.Obsolete("ConvertFrom is obsolete as of version 2.2.0. Please use ConvertFromInvariantString (string) instead.")]
public virtual object ConvertFrom (System.Globalization.CultureInfo culture, object o);
abstract member ConvertFrom : System.Globalization.CultureInfo * obj -> obj
override this.ConvertFrom : System.Globalization.CultureInfo * obj -> obj
Parameters
- culture
- System.Globalization.CultureInfo
The culture information to use when performing the conversion.
- o
- System.Object
The object to convert.
Returns
- Attributes
-
System.ComponentModel.EditorBrowsableAttribute System.ObsoleteAttribute