<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>NxBinaryFormatter.SerializeAs Method</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">OpenNxSerialization API Reference</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">NxBinaryFormatter.SerializeAs�Method�</h1>
</div>
</div>
<div id="nstext">
<p> Serializes an object, or graph of objects with the given root to the provided stream. </p>
<div class="syntax">
<span class="lang">[Visual�Basic]</span>
<br />Public�Sub�SerializeAs( _<br />���ByVal <i>stream</i>�As�<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOStreamClassTopic.asp">Stream</a>,�_<br />���ByVal <i>graph</i>�As�<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassTopic.asp">Object</a>,�_<br />���ByVal <i>type</i>�As�<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemTypeClassTopic.asp">Type</a>�_<br />)</div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public�<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemVoidClassTopic.asp">void</a>�SerializeAs(<br />���<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemIOStreamClassTopic.asp">Stream</a>�<i>stream</i>,<br />���<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemObjectClassTopic.asp">Object</a>�<i>graph</i>,<br />���<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemTypeClassTopic.asp">Type</a>�<i>type</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>stream</i>
</dt>
<dd>The stream where the formatter puts the serialized data. This stream can reference a variety of backing stores (such as files, network, memory, and so on)</dd>
<dt>
<i>graph</i>
</dt>
<dd>The object, or root of the object graph, to serialize. All child objects of this root object are automatically serialized</dd>
<dt>
<i>type</i>
</dt>
<dd>Serializes the object as an instance of type <i>type</i></dd>
</dl>
<h4 class="dtH4">See Also</h4>
<p>
<a href="NeXtreme.OpenNxSerialization.Formatters.NxBinaryFormatter.html">NxBinaryFormatter Class</a> | <a href="NeXtreme.OpenNxSerialization.Formatters.html">NeXtreme.OpenNxSerialization.Formatters Namespace</a></p>
<hr />
<div id="footer">
<p>
<a href="mailto:alleey@gmail.com?subject=OpenNxSerialization%20API%20Reference%20Documentation%20Feedback:%20NxBinaryFormatter.SerializeAs�Method�">Send comments on this topic.</a>
</p>
<p>
<a>Copyright (C) 2006 - 2007, NeXtreme Innovations. All rights reserved.</a>
</p>
<p>Generated from assembly NeXtreme.OpenNxSerialization [1.0.0.0]</p>
</div>
</div>
</body>
</html>