共用方式為


WorkflowMarkupSerializer.DeserializeFromString 方法

定義

根據要還原序列化之屬性的指定型別,從指定的字串還原序列化 eXtensible Application Markup Language (XAML) 內容。

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

參數

serializationManager
WorkflowMarkupSerializationManager

管理還原序列化 (Deserialization) 程序的 WorkflowMarkupSerializationManager

propertyType
Type

與要還原序列化的屬性相關聯的 Type

value
String

字串,包含要還原序列化的 XAML。

傳回

Object

已還原序列化的 Object

例外狀況

serializationManagerpropertyTypevalue 包含 null 參考 (Visual Basic 中為 Nothing)。

備註

value 必須符合下列其中一個準則:

適用於