共用方式為


WorkflowMarkupSerializer.CanSerializeToString 方法

定義

傳回布林值 (Boolean),這個值表示指定的物件是否可以序列化為字串。

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 為 null 參考 (在 Visual Basic 中為 Nothing)。

-或-

value 為 null 參考 (Nothing)。

適用於