Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

XamlObjectWriter.WriteStartMember Method

.NET Framework 4.6 and 4.5

Writes a new member node into the current object scope, and the scope becomes a new member scope.

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)

public override void WriteStartMember(
	XamlMember property
)

Parameters

property
Type: System.Xaml.XamlMember

The XAML property to write. Typically you obtain this value from a XAML reader through the XAML node stream intermediate.

ExceptionCondition
XamlObjectWriterException

property has IsUnknown set to true.

-or-

UnknownContent passed, which indicates that the XAML node stream contained content for an object that does not support content.

-or-

Attempted to write a start member in an invalid scope.

XamlDuplicateMemberException

property specifies a property that is already explicitly set in the parent object scope.

ArgumentNullException

property is null.

TipTip

Watch for a XamlDuplicateMemberException, which occurs when the same XAML property is set twice in the XAML input. In simple cases, such as when the same property is set in both attribute syntax and property element syntax, you can easily see this exception in the input markup. However, more subtle cases can occur that are more difficult to spot. For example, this exception might occur if you set a XAML content property, if you involve XAML ambient properties, and if a property enables both an attachable usage and an instance usage. In the debugging phases of development, you can often locate this exception by viewing the intermediate XAML node representation that connects the markup read and the object graph write.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft