Edit

Share via


MarkupWriter.GetMarkupObjectFor Method

Definition

Creates an instance of a MarkupObject.

Overloads

GetMarkupObjectFor(Object)

Creates an instance of a MarkupObject from the specified object.

GetMarkupObjectFor(Object, XamlDesignerSerializationManager)

Creates an instance of a MarkupObject from the specified object and the specified serialization manager.

GetMarkupObjectFor(Object)

Creates an instance of a MarkupObject from the specified object.

C#
public static System.Windows.Markup.Primitives.MarkupObject GetMarkupObjectFor(object instance);

Parameters

instance
Object

An object that will be the root of the serialized tree.

Returns

A markup object that enables navigating through the tree of objects.

Exceptions

instance is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

GetMarkupObjectFor(Object, XamlDesignerSerializationManager)

Creates an instance of a MarkupObject from the specified object and the specified serialization manager.

C#
public static System.Windows.Markup.Primitives.MarkupObject GetMarkupObjectFor(object instance, System.Windows.Markup.XamlDesignerSerializationManager manager);

Parameters

instance
Object

An object that will be the root of the serialized tree.

manager
XamlDesignerSerializationManager

The serialization manager.

Returns

A markup object that enables navigating through the tree of objects.

Exceptions

instance or manager is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10