ActivityMarkupSerializer 类

定义

注意

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

在设计时为 Activity 提供可扩展应用程序标记语言 (XAML) 序列化服务。Provides extensible Application Markup Language (XAML) serialization services for an Activity at design time.

public ref class ActivityMarkupSerializer : System::Workflow::ComponentModel::Serialization::WorkflowMarkupSerializer
public class ActivityMarkupSerializer : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class ActivityMarkupSerializer : System.Workflow.ComponentModel.Serialization.WorkflowMarkupSerializer
type ActivityMarkupSerializer = class
    inherit WorkflowMarkupSerializer
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type ActivityMarkupSerializer = class
    inherit WorkflowMarkupSerializer
Public Class ActivityMarkupSerializer
Inherits WorkflowMarkupSerializer
继承
ActivityMarkupSerializer
派生
属性

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

ActivityMarkupSerializer 提供将活动类对象序列化为 XAML 格式和将 XAML 内容反序列化为活动类对象的方法。ActivityMarkupSerializer provides methods that serialize activity class objects into XAML format and deserialize XAML content into activity class objects. 这些服务主要由活动设计器使用,用于在工作流设计图面上保留类。These services are primarily used by activity designers to persist the classes on the workflow design surface.

有关序列化的详细信息,请参阅 序列化For more information about serialization, see Serialization.

构造函数

ActivityMarkupSerializer()

初始化 ActivityMarkupSerializer 类的新实例。Initializes a new instance of the ActivityMarkupSerializer class.

字段

EndColumnProperty

活动定义中最后一个字符的索引。The index of the last character in the activity definition.

EndLineProperty

活动定义中最后一行的索引。The index of the last line in the activity definition.

StartColumnProperty

活动定义中第一个字符的索引。The index of the first character in the activity definition.

StartLineProperty

活动定义中第一行的索引。The index of the first line in the activity definition.

方法

AddChild(WorkflowMarkupSerializationManager, Object, Object)

将子对象添加到指定的对象中。Adds a child object to the specified object.

(继承自 WorkflowMarkupSerializer)
CanSerializeToString(WorkflowMarkupSerializationManager, Object)

返回一个布尔值,该值指示能否将指定的对象序列化为字符串。Returns a Boolean that indicates whether the specified object can be serialized to a string.

(继承自 WorkflowMarkupSerializer)
ClearChildren(WorkflowMarkupSerializationManager, Object)

从指定对象中移除所有子对象。Removes all child objects from the specified object.

(继承自 WorkflowMarkupSerializer)
CreateInstance(WorkflowMarkupSerializationManager, Type)

使用指定的 Type 创建指定 WorkflowMarkupSerializationManager 的实例。Creates an instance of the specified Type using the specified WorkflowMarkupSerializationManager.

Deserialize(IDesignerSerializationManager, XmlReader)

使用指定的序列化管理器将工作流标记反序列化为 ObjectDeserializes workflow markup into an Object using the specified serialization manager.

(继承自 WorkflowMarkupSerializer)
Deserialize(XmlReader)

将工作流标记反序列化为 ObjectDeserializes workflow markup into an Object.

(继承自 WorkflowMarkupSerializer)
DeserializeFromString(WorkflowMarkupSerializationManager, Type, String)

根据要反序列化的给定类型的属性,反序列化指定字符串中的可扩展应用程序标记语言 (XAML) 内容。Deserializes extensible Application Markup Language (XAML) content from the specified string according to the given type of the property to deserialize.

(继承自 WorkflowMarkupSerializer)
Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetChildren(WorkflowMarkupSerializationManager, Object)

检索指定对象的子对象的列表。Retrieves a list of child objects for the specified object.

(继承自 WorkflowMarkupSerializer)
GetEvents(WorkflowMarkupSerializationManager, Object)

检索有关与指定 Object 关联的所有事件的信息。Retrieves information about all events associated with the specified Object.

(继承自 WorkflowMarkupSerializer)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetProperties(WorkflowMarkupSerializationManager, Object)

检索有关与指定对象关联的所有属性的信息。Retrieves information about all properties associated with the specified object.

(继承自 WorkflowMarkupSerializer)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
OnAfterDeserialize(WorkflowMarkupSerializationManager, Object)

重写。Overridden. WorkflowMarkupSerializer 通知刚反序列化了一个对象。Notifies the WorkflowMarkupSerializer that an object has just been deserialized.

(继承自 WorkflowMarkupSerializer)
OnAfterSerialize(WorkflowMarkupSerializationManager, Object)

ActivityMarkupSerializer 通知刚序列化了一个对象。Notifies the ActivityMarkupSerializer that an object has just been serialized.

OnBeforeDeserialize(WorkflowMarkupSerializationManager, Object)

重写。Overridden. WorkflowMarkupSerializer 通知即将反序列化一个对象。Notifies the WorkflowMarkupSerializer that an object is about to be deserialized.

(继承自 WorkflowMarkupSerializer)
OnBeforeSerialize(WorkflowMarkupSerializationManager, Object)

ActivityMarkupSerializer 通知即将序列化对象。Notifies the ActivityMarkupSerializer that an object is about to be serialized.

Serialize(IDesignerSerializationManager, XmlWriter, Object)

使用指定的序列化管理器,将指定的 Object 序列化到工作流标记文件或流中。Serializes the specified Object into a workflow markup file or stream using the specified serialization manager.

(继承自 WorkflowMarkupSerializer)
Serialize(XmlWriter, Object)

将指定的 Object 序列化到工作流标记文件或流中。Serializes the specified Object into a workflow markup file or stream.

(继承自 WorkflowMarkupSerializer)
SerializeToString(WorkflowMarkupSerializationManager, Object)

将指定的 Object 序列化为字符串。Serializes the specified Object to a string.

(继承自 WorkflowMarkupSerializer)
ShouldSerializeValue(WorkflowMarkupSerializationManager, Object)

返回一个值,该值指示 WorkflowMarkupSerializer 是否应序列化指定的 ObjectReturns a value that indicates whether the WorkflowMarkupSerializer should serialize the specified Object.

(继承自 WorkflowMarkupSerializer)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于