Condividi tramite


QueryStringConverter.CanConvert Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Determines whether the specified type can be converted to and from a string representation.

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel.Web.Extensions (in System.ServiceModel.Web.Extensions.dll)

Syntax

'Declaration
Public Overridable Function CanConvert ( _
    type As Type _
) As Boolean
public virtual bool CanConvert(
    Type type
)

Parameters

Return Value

Type: System.Boolean
A value that specifies whether the type can be converted.

Examples

The following code shows how to determine whether the QueryStringConverter can convert to and from the specified type.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.