ContentPropertyAttribute 构造函数

定义

初始化 ContentPropertyAttribute 类的新实例。

重载

名称 说明
ContentPropertyAttribute()

初始化 ContentPropertyAttribute 类的新实例。

ContentPropertyAttribute(String)

初始化类的新实例 ContentPropertyAttribute ,初始化 Name 属性。

ContentPropertyAttribute()

初始化 ContentPropertyAttribute 类的新实例。

public:
 ContentPropertyAttribute();
public ContentPropertyAttribute();
Public Sub New ()

适用于

ContentPropertyAttribute(String)

初始化类的新实例 ContentPropertyAttribute ,初始化 Name 属性。

public:
 ContentPropertyAttribute(System::String ^ name);
public ContentPropertyAttribute(string name);
new System.Workflow.ComponentModel.Serialization.ContentPropertyAttribute : string -> System.Workflow.ComponentModel.Serialization.ContentPropertyAttribute
Public Sub New (name As String)

参数

name
String

一个 String 包含属性的值 Name

注解

对于 Windows Workflow Foundation,以下限制与 ContentPropertyAttribute 相关:

  • TypeStack<T>不支持Queue<T>ContentProperty的类型。

  • 空字符串将反序列化为 null 值。

  • 绑定到使用ContentProperty字段的字段ActivityBind不会序列化为 .ContentProperty

  • ContentProperty 工作流标记不支持与非内容属性的交错。

适用于