<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>NxTypeSurrogateSelector.GetSurrogateForType Method (Type, Boolean)</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">NxTypeSurrogateSelector.GetSurrogateForType�Method�(Type, Boolean)</h1>
</div>
</div>
<div id="nstext">
<p> Finds and returns <a href="NeXtreme.OpenNxSerialization.Surrogates.INxSerializationSurrogate.html">INxSerializationSurrogate</a> for the given type. Allows you to inhibit the usage of default surrogate. </p>
<div class="syntax">
<span class="lang">[Visual�Basic]</span>
<br />NotOverridable�Overloads�Public�Function�GetSurrogateForType( _<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 />���ByVal <i>strict</i>�As�<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemBooleanClassTopic.asp">Boolean</a>�_<br />)�As�<a href="NeXtreme.OpenNxSerialization.Surrogates.INxSerializationSurrogate.html">INxSerializationSurrogate</a>�_<div>����Implements�<a href="NeXtreme.OpenNxSerialization.INxTypeSurrogateSelector.GetSurrogateForType_overload_2.html">INxTypeSurrogateSelector.GetSurrogateForType</a></div></div>
<div class="syntax">
<span class="lang">[C#]</span>
<br />public�<a href="NeXtreme.OpenNxSerialization.Surrogates.INxSerializationSurrogate.html">INxSerializationSurrogate</a>�GetSurrogateForType(<br />���<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemTypeClassTopic.asp">Type</a>�<i>type</i>,<br />���<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemBooleanClassTopic.asp">Boolean</a>�<i>strict</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>type</i>
</dt>
<dd>specified type</dd>
<dt>
<i>strict</i>
</dt>
<dd>Specifies whether the default surrogate will be returned.</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p>
<a href="NeXtreme.OpenNxSerialization.Surrogates.INxSerializationSurrogate.html">INxSerializationSurrogate</a> object</p>
<h4 class="dtH4">Implements</h4>
<p>
<a href="NeXtreme.OpenNxSerialization.INxTypeSurrogateSelector.GetSurrogateForType_overload_2.html">INxTypeSurrogateSelector.GetSurrogateForType</a>
</p>
<h4 class="dtH4">See Also</h4>
<p>
<a href="NeXtreme.OpenNxSerialization.NxTypeSurrogateSelector.html">NxTypeSurrogateSelector Class</a> | <a href="NeXtreme.OpenNxSerialization.html">NeXtreme.OpenNxSerialization Namespace</a> | <a href="NeXtreme.OpenNxSerialization.NxTypeSurrogateSelector.GetSurrogateForType_overloads.html">NxTypeSurrogateSelector.GetSurrogateForType Overload List</a></p>
<hr />
<div id="footer">
<p>
<a>Copyright (C) 2006 - 2008, NeXtreme Innovations. All rights reserved.</a>
</p>
<p>Generated from assembly NeXtreme.OpenNxSerialization [1.5.0.0]</p>
</div>
</div>
</body>
</html>