ValueProviderResult.ConvertTo 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 that is encapsulated by this result to the specified type.
Overloads
ConvertTo(Type) |
Converts a value that is encapsulated by this result to the specified type. |
ConvertTo(Type, CultureInfo) |
Converts the value that is encapsulated by this result to the specified type by using the specified culture information. |
ConvertTo(Type)
Converts a value that is encapsulated by this result to the specified type.
public:
System::Object ^ ConvertTo(Type ^ type);
public object ConvertTo (Type type);
member this.ConvertTo : Type -> obj
Public Function ConvertTo (type As Type) As Object
Parameters
- type
- Type
The type.
Returns
The converted value.
Exceptions
The type
parameter is null
.
Conversion was unsuccessful.
Applies to
ConvertTo(Type, CultureInfo)
Converts the value that is encapsulated by this result to the specified type by using the specified culture information.
public:
virtual System::Object ^ ConvertTo(Type ^ type, System::Globalization::CultureInfo ^ culture);
public virtual object ConvertTo (Type type, System.Globalization.CultureInfo culture);
abstract member ConvertTo : Type * System.Globalization.CultureInfo -> obj
override this.ConvertTo : Type * System.Globalization.CultureInfo -> obj
Public Overridable Function ConvertTo (type As Type, culture As CultureInfo) As Object
Parameters
- type
- Type
The type.
- culture
- CultureInfo
The culture information.
Returns
The converted value.
Exceptions
The type
parameter is null
.
Conversion was unsuccessful.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru