ContentPropertyAttribute Class

Contains the name for the content property of the decorated class. Marking a type with this attribute causes the data in that type to be serialized without the enclosing property name tags. This class cannot be inherited.

Namespace: System.Workflow.ComponentModel.Serialization
Assembly: System.Workflow.ComponentModel (in system.workflow.componentmodel.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple:=False, Inherited:=True)> _
Public NotInheritable Class ContentPropertyAttribute
	Inherits Attribute
'Usage
Dim instance As ContentPropertyAttribute

/** @attribute AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=true) */ 
public final class ContentPropertyAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple=false, Inherited=true) 
public final class ContentPropertyAttribute extends Attribute
Not applicable.

For Windows Workflow Foundation, the following restrictions pertain to ContentPropertyAttribute:

  • Type, Stack, and Queue are not supported ContentProperty types.

  • An empty string is deserialized as a null value.

  • A ContentProperty that binds to a field using ActivityBind is not serialized as a ContentProperty.

  • ContentProperty that interleaves with non-content property is not supported in workflow markup.

System.Object
   System.Attribute
    System.Workflow.ComponentModel.Serialization.ContentPropertyAttribute

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: