Číst v angličtině

Sdílet prostřednictvím


ModelingEnumerationConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

Converts the domain enumeration object to the specified type by using the specified context.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Deklarace
Public Overrides Function ConvertTo ( _
    context As ITypeDescriptorContext, _
    culture As CultureInfo, _
    value As Object, _
    destinationType As Type _
) As Object

Parameters

  • destinationType
    Type: System.Type
    The type to convert the value to.

Return Value

Type: System.Object
The converted value.

Exceptions

Exception Condition
ArgumentNullException

destinationType is nulla null reference (Nothing in Visual Basic).

Remarks

This converter can only convert an enumeration object to and from a string.

By default, the culture parameter is ignored.

Notes to Inheritors

Override this method to provide your own conversion.

.NET Framework Security

See Also

Reference

ModelingEnumerationConverter Class

ConvertTo Overload

Microsoft.VisualStudio.Modeling.Design Namespace