CursorConverter.ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) 方法

定義

使用指定的內容,嘗試將指定的物件轉換為 CursorAttempts to convert the specified object to a Cursor, using the specified context.

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

格式內容,提供正在叫用此轉換器之環境的相關資訊。A format context that provides information about the environment from which this converter is being invoked.

culture
CultureInfo

特定文化特性 (Culture) 資訊。Culture specific information.

value
Object

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

傳回

轉換的物件,如果 value 為空字串則為 nullThe converted object, or null if value is an empty string.

例外狀況

value 不可以轉換。value cannot be converted

適用於