[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Serializes the object to a byte array representing XML with the specified encoding

Namespace:  Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging(in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

                 
  C#     Visual Basic     Visual C++  
public 
static 
byte[] 
SerializeObjectToXml(
	
Object 
graph,
	

SerializationArguments 
arguments,
	
Encoding 
encoding
)
Public 
Shared 
Function 
SerializeObjectToXml ( _
	
graph 
As 
Object, _
	
arguments 
As 

SerializationArguments, _
	
encoding 
As 
Encoding _
) 
As 
Byte()
public:
static 
array<
unsigned char>^ 
SerializeObjectToXml(
	
Object^ 
graph, 
	

SerializationArguments 
arguments, 
	
Encoding^ 
encoding
)

Parameters

graph
Object
arguments
SerializationArguments
encoding
Encoding

Return Value

Serialized object

See Also