JsonConverter.CanConvert(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, determines whether the converter instance can convert the specified object type.
public:
abstract bool CanConvert(Type ^ typeToConvert);
public abstract bool CanConvert (Type typeToConvert);
abstract member CanConvert : Type -> bool
Public MustOverride Function CanConvert (typeToConvert As Type) As Boolean
Parameters
- typeToConvert
- Type
The type of the object to check whether it can be converted by this converter instance.
Returns
true
if the instance can convert the specified object type; otherwise, false
.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET