VisualBasicSettingsConverter.CanConvertTo Metod

Definition

Avgör om en VisualBasicSettings instans kan konverteras till en instans av den angivna typen.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Parametrar

context
ITypeDescriptorContext

Kontextinformation som används för konvertering.

destinationType
Type

Den typ som ska konverteras till.

Returer

true om en VisualBasicSettings instans kan konverteras till en instans av den angivna typen, falseannars .

Kommentarer

Den här metoden returnerar false om är en destinationType. Annars görs bestämningen genom att anropa basklassmetoden StringCanConvertTo .

Gäller för