Converts from the string to a PlatformType.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overrides Function ConvertFrom ( _
context As ITypeDescriptorContext, _
culture As CultureInfo, _
value As Object _
) As Object
'使用
Dim instance As PlatformTypeConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim returnValue As Object
returnValue = instance.ConvertFrom(context, _
culture, value)
public override Object ConvertFrom(
ITypeDescriptorContext context,
CultureInfo culture,
Object value
)
public:
virtual Object^ ConvertFrom(
ITypeDescriptorContext^ context,
CultureInfo^ culture,
Object^ value
) override
public override function ConvertFrom(
context : ITypeDescriptorContext,
culture : CultureInfo,
value : Object
) : Object
Parameters
context
Type: System.ComponentModel.ITypeDescriptorContextAn ITypeDescriptorContext further specifying the type.
culture
Type: System.Globalization.CultureInfoA CultureInfo object specifying the language and culture of the string.
value
Type: System.ObjectThe string from which to convert.
Return Value
Type: System.Object
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.