DataSourceViewSchemaConverter.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.
Converts the specified object to the type of the associated control property.
public:
override System::Object ^ ConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value);
public override object ConvertFrom (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value);
override this.ConvertFrom : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj -> obj
Public Overrides Function ConvertFrom (context As ITypeDescriptorContext, culture As CultureInfo, value As Object) As Object
Parameters
- context
- ITypeDescriptorContext
An ITypeDescriptorContext implementation that can be used to gain additional context information.
- culture
- CultureInfo
The CultureInfo object that can be used to support localization features.
- value
- Object
The object to convert.
Returns
An Object instance that represents the converted object.
Exceptions
The conversion could not be performed.
Remarks
If value
is a string, then the string representation of value
is returned. If value
is null
, an empty string ("") is returned. For all other specified values, a NotSupportedException exception is thrown.
Call the CanConvertFrom method to determine whether the ConvertFrom method supports converting the source type.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈