Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Indicates whether this converter can convert an object in the given source type to a domain enumeration object by using the specified context.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Overrides Function CanConvertFrom ( _
context As ITypeDescriptorContext, _
sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
)
public:
virtual bool CanConvertFrom(
ITypeDescriptorContext^ context,
Type^ sourceType
) override
abstract CanConvertFrom :
context:ITypeDescriptorContext *
sourceType:Type -> bool
override CanConvertFrom :
context:ITypeDescriptorContext *
sourceType:Type -> bool
public override function CanConvertFrom(
context : ITypeDescriptorContext,
sourceType : Type
) : boolean
Parameters
context
Type: System.ComponentModel.ITypeDescriptorContextThe format context.
sourceType
Type: System.TypeThe type to convert from.
Return Value
Type: System.Boolean
true if this converter can perform the conversion; otherwise, false.
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 restrictions.
.NET Framework Security
- 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.