ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)
**[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]**This member overrides TypeConverter. . :: . .ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type).
Namespace: System.Dataflow
Assembly: System.Dataflow (in System.Dataflow.dll)
Syntax
'Declaration
PublicOverridesFunctionConvertTo ( _
contextAsITypeDescriptorContext, _
cultureAsCultureInfo, _
valueAsObject, _
destinationTypeAsType _
) AsObject
'Usage
DiminstanceAsByteArrayConverterDimcontextAsITypeDescriptorContextDimcultureAsCultureInfoDimvalueAsObjectDimdestinationTypeAsTypeDimreturnValueAsObjectreturnValue = instance.ConvertTo(context, _
culture, value, destinationType)
publicoverrideObjectConvertTo(
ITypeDescriptorContextcontext,
CultureInfoculture,
Objectvalue,
TypedestinationType
)
public:
virtualObject^ ConvertTo(
ITypeDescriptorContext^ context,
CultureInfo^ culture,
Object^ value,
Type^ destinationType
) override
publicoverridefunctionConvertTo(
context : ITypeDescriptorContext,
culture : CultureInfo,
value : Object,
destinationType : Type
) : Object
Parameters
- context
Type: System.ComponentModel. . :: . .ITypeDescriptorContext
- culture
Type: System.Globalization. . :: . .CultureInfo
- value
Type: System. . :: . .Object
- destinationType
Type: System. . :: . .Type
Return Value
Type: System. . :: . .Object
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see https://msdn.microsoft.com/en-us/library/8skskf63(v=vs.85).