MarkupWriter.GetMarkupObjectFor Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
static System::Windows::Markup::Primitives::MarkupObject ^ GetMarkupObjectFor(System::Object ^ instance);
public static System.Windows.Markup.Primitives.MarkupObject GetMarkupObjectFor (object instance);
static member GetMarkupObjectFor : obj -> System.Windows.Markup.Primitives.MarkupObject
Public Shared Function GetMarkupObjectFor (instance As Object) As MarkupObject
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
GetMarkupObjectFor(Object, XamlDesignerSerializationManager)
Creates an instance of a MarkupObject from the specified object and the specified serialization manager.
public:
static System::Windows::Markup::Primitives::MarkupObject ^ GetMarkupObjectFor(System::Object ^ instance, System::Windows::Markup::XamlDesignerSerializationManager ^ manager);
public static System.Windows.Markup.Primitives.MarkupObject GetMarkupObjectFor (object instance, System.Windows.Markup.XamlDesignerSerializationManager manager);
static member GetMarkupObjectFor : obj * System.Windows.Markup.XamlDesignerSerializationManager -> System.Windows.Markup.Primitives.MarkupObject
Public Shared Function GetMarkupObjectFor (instance As Object, manager As XamlDesignerSerializationManager) As MarkupObject
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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기