DateTimeValueSerializer.CanConvertToString 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.
Determines if the specified object can be converted to a String.
public:
override bool CanConvertToString(System::Object ^ value, System::Windows::Markup::IValueSerializerContext ^ context);
public override bool CanConvertToString (object value, System.Windows.Markup.IValueSerializerContext context);
override this.CanConvertToString : obj * System.Windows.Markup.IValueSerializerContext -> bool
Public Overrides 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 value
can be converted into a String; otherwise, false
.
Remarks
This implementation returns true
only if the passed value
is of type DateTime.
Applies to
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.