Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DiscoveryVersionConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

.NET Framework 4.6 and 4.5

Returns a value that indicates whether it is possible to change the given DiscoveryVersion object to the type of this converter and using the specified context and culture information.

Namespace:  System.ServiceModel.Discovery.Configuration
Assembly:  System.ServiceModel.Discovery (in System.ServiceModel.Discovery.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

Type descriptor format information that assists in the conversion of a DiscoveryVersion object to another type.

sourceType
Type: System.Type

The DiscoveryVersion object that is changed to the type of this converter.

Return Value

Type: System.Boolean
true if it is possible to change the specified DiscoveryVersion object to the type of this converter; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft