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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για