ModelBusReferenceTypeConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
Converts the given value object to the specified type, using the specified context and culture information.
Namespace: Microsoft.VisualStudio.Modeling.Integration
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Integration.12.0.dll)
Syntax
public override object ConvertTo(
ITypeDescriptorContext context,
CultureInfo culture,
object value,
Type destinationType
)
public:
virtual Object^ ConvertTo(
ITypeDescriptorContext^ context,
CultureInfo^ culture,
Object^ value,
Type^ destinationType
) override
override ConvertTo :
context:ITypeDescriptorContext *
culture:CultureInfo *
value:Object *
destinationType:Type -> Object
Public Overrides Function ConvertTo (
context As ITypeDescriptorContext,
culture As CultureInfo,
value As Object,
destinationType As Type
) As Object
Parameters
context
Type: System.ComponentModel.ITypeDescriptorContextAn ITypeDescriptorContext that provides a format context.
culture
Type: System.Globalization.CultureInfoA CultureInfo object.
value
Type: System.ObjectThe Object to convert.
destinationType
Type: System.TypeThe Type to convert the value parameter to.
Return Value
Type: System.Object
An Object that represents the converted value.
See Also
ConvertTo Overload
ModelBusReferenceTypeConverter Class
Microsoft.VisualStudio.Modeling.Integration Namespace
Return to top