ValueSerializer.CanConvertToString(Object, 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 object can be converted into a String.
public:
virtual bool CanConvertToString(System::Object ^ value, System::Windows::Markup::IValueSerializerContext ^ context);
public virtual bool CanConvertToString (object value, System.Windows.Markup.IValueSerializerContext context);
abstract member CanConvertToString : obj * System.Windows.Markup.IValueSerializerContext -> bool
override this.CanConvertToString : obj * System.Windows.Markup.IValueSerializerContext -> bool
Public Overridable Function CanConvertToString (value As Object, context As IValueSerializerContext) As Boolean
Parameters
- value
- Object
The object to evaluate for conversion.
- context
- IValueSerializerContext
Context information that is used for conversion.
Returns
true
if the value
can be converted into a String; otherwise, false
.
Remarks
The base implementation always returns false
.
Applies to
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.