WorkflowMarkupSerializer.CanSerializeToString 方法

定义

返回一个布尔值,该值指示能否将指定的对象序列化为字符串。

protected public:
 virtual bool CanSerializeToString(System::Workflow::ComponentModel::Serialization::WorkflowMarkupSerializationManager ^ serializationManager, System::Object ^ value);
protected internal virtual bool CanSerializeToString (System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager serializationManager, object value);
abstract member CanSerializeToString : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> bool
override this.CanSerializeToString : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializationManager * obj -> bool
Protected Friend Overridable Function CanSerializeToString (serializationManager As WorkflowMarkupSerializationManager, value As Object) As Boolean

参数

serializationManager
WorkflowMarkupSerializationManager

用于序列化此对象的 WorkflowMarkupSerializationManager

value
Object

指定的 Object

返回

Boolean

如果指定对象可以序列化为字符串,则为 true;否则为 false

例外

serializationManager 为空引用(在 Visual Basic 中为 Nothing)。

  • 或 -

value 为空引用 (Nothing)。

适用于