ValueSerializer.CanConvertFromString(String, IValueSerializerContext) 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 specified String can be converted to an instance of the type that the implementation of ValueSerializer supports.
public:
virtual bool CanConvertFromString(System::String ^ value, System::Windows::Markup::IValueSerializerContext ^ context);
public virtual bool CanConvertFromString (string value, System.Windows.Markup.IValueSerializerContext context);
abstract member CanConvertFromString : string * System.Windows.Markup.IValueSerializerContext -> bool
override this.CanConvertFromString : string * System.Windows.Markup.IValueSerializerContext -> bool
Public Overridable Function CanConvertFromString (value As String, context As IValueSerializerContext) As Boolean
Parameters
- value
- String
The string to evaluate for conversion.
- context
- IValueSerializerContext
Context information that is used for conversion.
Returns
true
if the value can be converted; otherwise, false
.
Remarks
The base implementation always returns false
.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.