VisualBasicSettingsConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) VisualBasicSettingsConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) VisualBasicSettingsConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) VisualBasicSettingsConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) Method

定義

將指定的物件轉換成 VisualBasicSettings 執行個體。Converts the specified object to a VisualBasicSettings instance.

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

context
ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext ITypeDescriptorContext

用於轉換的內容資訊。Context information that is used for conversion.

culture
CultureInfo CultureInfo CultureInfo CultureInfo

選擇性 CultureInfoAn optional CultureInfo. 如果未提供,則會假設使用目前的文化特性。If not supplied, the current culture is assumed.

value
Object Object Object Object

要轉換的物件。The object to convert.

傳回

物件,表示轉換的值。An object that represents the converted value.

備註

轉換會透過呼叫基底類別方法 ConvertFrom 進行。The conversion is made by calling the base class method ConvertFrom. 如果無法進行轉換,會擲回 NotSupportedExceptionIf the conversion cannot be made, a NotSupportedException is thrown.

適用於