Literal<T>.CanConvertToString(IValueSerializerContext) 方法

定义

获取一个值,该值指示是否可将 Literal<T> 转换为 String

public:
 virtual bool CanConvertToString(System::Windows::Markup::IValueSerializerContext ^ context);
public bool CanConvertToString (System.Windows.Markup.IValueSerializerContext context);
abstract member CanConvertToString : System.Windows.Markup.IValueSerializerContext -> bool
override this.CanConvertToString : System.Windows.Markup.IValueSerializerContext -> bool
Public Function CanConvertToString (context As IValueSerializerContext) As Boolean

参数

context
IValueSerializerContext

用于转换的上下文信息。

返回

Boolean

如果可将该值转换为 String,则为 true;否则为 false

实现

适用于