<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><head><title>NoContentSource Constructor (ContentType, Int32, SourceInfo)</title><link rel="stylesheet" type="text/css" href="../styles/presentation.css" /><link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" /><script type="text/javascript" src="../scripts/EventUtilities.js"></script><script type="text/javascript" src="../scripts/SplitScreen.js"></script><script type="text/javascript" src="../scripts/Dropdown.js"></script><script type="text/javascript" src="../scripts/script_manifold.js"></script><meta name="guid" content="bb4ced6e-1d15-7584-b215-63a9bdb35edf" /><xml xmlns:msxsl="urn:schemas-microsoft-com:xslt"><MSHelp:TOCTitle Title="NoContentSource Constructor (ContentType, Int32, SourceInfo)"></MSHelp:TOCTitle><MSHelp:RLTitle Title="NoContentSource Constructor (ContentType, Int32, SourceInfo) (InsomniaSoftware.Server.Sources)"></MSHelp:RLTitle><MSHelp:Attr Name="AssetID" Value="M:InsomniaSoftware.Server.Sources.NoContentSource.#ctor(InsomniaSoftware.Server.ContentType,System.Int32,InsomniaSoftware.Server.Sources.SourceInfo)" /><MSHelp:Keyword Index="A" Term="M:InsomniaSoftware.Server.Sources.NoContentSource.#ctor(InsomniaSoftware.Server.ContentType,System.Int32,InsomniaSoftware.Server.Sources.SourceInfo)" /><MSHelp:Keyword Index="A" Term="frlrfInsomniaSoftwareServerSourcesNoContentSourceClassctorTopic" /><MSHelp:Keyword Index="F" Term="NoContentSource" /><MSHelp:Keyword Index="F" Term="NoContentSource.NoContentSource" /><MSHelp:Keyword Index="F" Term="InsomniaSoftware.Server.Sources.NoContentSource.NoContentSource" /><MSHelp:Attr Name="APIType" Value="Managed" /><MSHelp:Attr Name="APILocation" Value="InsomniaServer.dll" /><MSHelp:Attr Name="APIName" Value="InsomniaSoftware.Server.Sources.NoContentSource..ctor" /><MSHelp:Attr Name="DevLang" Value="CSharp" /><MSHelp:Attr Name="DevLang" Value="VB" /><MSHelp:Attr Name="DevLang" Value="C++" /><MSHelp:Attr Name="Locale" Value="en-us"></MSHelp:Attr><MSHelp:Attr Name="TopicType" Value="kbSyntax" /><MSHelp:Attr Name="Abstract" Value="Creates a contentless source sending a content length" /></xml></head><body><input type="hidden" id="userDataCache" class="userDataStyle" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" /><input type="hidden" id="hiddenScrollOffset" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" /><img id="collapseImage" style="display:none; height:0; width:0;" alt="Collapse image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/collapse_all.gif"></img><img id="expandImage" style="display:none; height:0; width:0;" alt="Expand image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/expand_all.gif"></img><img id="collapseAllImage" style="display:none; height:0; width:0;" alt="CollapseAll image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/collall.gif"></img><img id="expandAllImage" style="display:none; height:0; width:0;" alt="ExpandAll image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/expall.gif"></img><img id="dropDownImage" style="display:none; height:0; width:0;" alt="DropDown image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/drpdown.gif"></img><img id="dropDownHoverImage" style="display:none; height:0; width:0;" alt="DropDownHover image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/drpdown_orange.gif"></img><img id="copyImage" style="display:none; height:0; width:0;" alt="Copy image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/copycode.gif"></img><img id="copyHoverImage" style="display:none; height:0; width:0;" alt="CopyHover image" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt" src="../icons/copycodeHighlight.gif"></img><div id="header" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:msxsl="urn:schemas-microsoft-com:xslt"><table id="topTable"><tr id="headerTableRow1"><td align="left"><span id="runningHeaderText">InsomniaServer - Class Library</span></td></tr><tr id="headerTableRow2"><td align="left"><span id="nsrTitle">NoContentSource Constructor (ContentType, Int32, SourceInfo)</span></td></tr><tr id="headerTableRow3"><td /></tr></table><table id="bottomTable" cellspacing="0" cellpadding="0"><tr><td><span onclick="ExpandCollapseAll(toggleAllImage)" style="cursor:default;" onkeypress="ExpandCollapseAll_CheckKey(toggleAllImage, event)" tabindex="0"><img ID="toggleAllImage" class="toggleAll" alt="CollapseAll image" src="../icons/collall.gif"></img><label id="collapseAllLabel" for="toggleAllImage" style="display: none;">Collapse All</label><label id="expandAllLabel" for="toggleAllImage" style="display: none;">Expand All</label> </span><span id="languageFilterToolTip" style="cursor:default;" onmouseover="languageFilterImage.src=dropDownHoverImage.src;" onmouseout="languageFilterImage.src=dropDownImage.src;" tabindex="0"><img id="languageFilterImage" alt="DropDown image" src="../icons/drpdown.gif"></img><label id="showAllLabel" for="languageFilterImage" style="display: none;">Language Filter: All</label><label id="multipleLabel" for="languageFilterImage" style="display: none;">Language Filter: Multiple</label><label id="vbLabel" for="languageFilterImage" style="display: none;">Language Filter: Visual Basic</label><label id="csLabel" for="languageFilterImage" style="display: none;">Language Filter: C#</label><label id="cLabel" for="languageFilterImage" style="display: none;">Language Filter: Visual C++</label><label id="jsharpLabel" for="languageFilterImage" style="display: none;">Language Filter: J#</label><label id="jsLabel" for="languageFilterImage" style="display: none;">Language Filter: JScript</label><label id="xamlLabel" for="languageFilterImage" style="display: none;">Language Filter: XAML</label></span></td></tr></table><div id="languageSpan"><input id="vbDeclarationCheckbox" type="checkbox" name="languageFilter" onClick="SetLanguage(this)" /><label class="languageFilter" for="vbDeclarationCheckbox">Visual Basic (Declaration)</label><br /><input id="vbUsageCheckbox" type="checkbox" name="languageFilter" onClick="SetLanguage(this)" /><label class="languageFilter" for="vbUsageCheckbox">Visual Basic (Usage)</label><br /><input id="csCheckbox" type="checkbox" name="languageFilter" onClick="SetLanguage(this)" /><label class="languageFilter" for="csCheckbox">C#</label><br /><input id="cCheckbox" type="checkbox" name="languageFilter" onClick="SetLanguage(this)" /><label class="languageFilter" for="cCheckbox">Visual C++</label><br /><input id="jsharpCheckbox" type="checkbox" name="languageFilter" onClick="SetLanguage(this)" /><label class="languageFilter" for="jsharpCheckbox">J#</label><br /><input id="jsCheckbox" type="checkbox" name="languageFilter" onClick="SetLanguage(this)" /><label class="languageFilter" for="jsCheckbox">JScript</label><br /><input id="xamlCheckbox" type="checkbox" name="languageFilter" onClick="SetLanguage(this)" /><label class="languageFilter" for="xamlCheckbox">XAML</label><br /></div></div><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" /><div id="header"> </div><div class="summary">
Creates a contentless source sending a content length
</div><p />
<b>Namespace:</b> InsomniaSoftware.Server.Sources
<br />
<b>Assembly:</b>
InsomniaServer (in InsomniaServer)<br /><b>Version:</b> 1.0.2.1
<h1 class="heading"><span onclick="ExpandCollapse(syntaxToggle)" style="cursor:default;" onkeypress="ExpandCollapse_CheckKey(syntaxToggle, event)" tabindex="0"><img id="syntaxToggle" onload="OnLoadImage(event)" class="toggle" name="toggleSwitch" src="../icons/collapse_all.gif"></img>Syntax</span></h1><div id="syntaxSection" class="section" name="collapseableSection" style=""><div id="syntaxCodeBlocks" class="code"><span codeLanguage="VisualBasicDeclaration"><table><tr><th>Visual Basic (Declaration)</th></tr><tr><td><pre xml:space="preserve"><span class="keyword">Public</span> <span class="keyword">Sub</span> <span class="identifier">New</span> ( _
<span class="parameter">type</span> <span class="keyword">As</span> <a href="e8217247-d701-cee3-a1ab-10d8d62d7594.htm">ContentType</a>, _
<span class="parameter">contentLength</span> <span class="keyword">As</span> <a href="http://msdn2.microsoft.com/en-us/td2s409d">Integer</a>, _
<span class="parameter">info</span> <span class="keyword">As</span> <a href="55160e16-692b-7f25-0d36-40e2ab09d439.htm">SourceInfo</a> _
)</pre></td></tr></table></span><span codeLanguage="CSharp"><table><tr><th>C#</th></tr><tr><td><pre xml:space="preserve"><span class="keyword">public</span> <span class="identifier">NoContentSource</span> (
<a href="e8217247-d701-cee3-a1ab-10d8d62d7594.htm">ContentType</a> <span class="parameter">type</span>,
<a href="http://msdn2.microsoft.com/en-us/td2s409d">int</a> <span class="parameter">contentLength</span>,
<a href="55160e16-692b-7f25-0d36-40e2ab09d439.htm">SourceInfo</a> <span class="parameter">info</span>
)</pre></td></tr></table></span><span codeLanguage="ManagedCPlusPlus"><table><tr><th>Visual C++</th></tr><tr><td><pre xml:space="preserve"><span class="keyword">public</span>:
<span class="identifier">NoContentSource</span> (
<a href="e8217247-d701-cee3-a1ab-10d8d62d7594.htm">ContentType</a>^ <span class="parameter">type</span>,
<a href="http://msdn2.microsoft.com/en-us/td2s409d">int</a> <span class="parameter">contentLength</span>,
<a href="55160e16-692b-7f25-0d36-40e2ab09d439.htm">SourceInfo</a>^ <span class="parameter">info</span>
)</pre></td></tr></table></span></div><h4 class="subHeading">Parameters</h4><dl paramName="type"><dt><span class="parameter">type</span></dt><dd><a href="e8217247-d701-cee3-a1ab-10d8d62d7594.htm">InsomniaSoftware.Server.ContentType</a><br />ContentType of the response</dd></dl><dl paramName="contentLength"><dt><span class="parameter">contentLength</span></dt><dd><a href="http://msdn2.microsoft.com/en-us/td2s409d">System.Int32</a><br />Content length to be sent</dd></dl><dl paramName="info"><dt><span class="parameter">info</span></dt><dd><a href="55160e16-692b-7f25-0d36-40e2ab09d439.htm">InsomniaSoftware.Server.Sources.SourceInfo</a><br />SourceInfo of the created source</dd></dl></div><div id="footer"><div class="footerLine"><img alt="Footer image" width="100%" height="3px" src="../icons/footer.gif"></img></div><div id="footer"><p />Send comments on this topic to
<a id="HT_MailLink" href="mailto:webmaster%40manuel-then.de?Subject=InsomniaServer - Class Library">webmaster@manuel-then.de</a>
<script type="text/javascript">
var HT_mailLink = document.getElementById("HT_MailLink");
var HT_mailLinkText = HT_mailLink.innerHTML;
HT_mailLink.href += ": " + document.title;
HT_mailLink.innerHTML = HT_mailLinkText;
</script> <p /><a href="mailto:webmaster@manuel-then.de">(c)2007 by InsomniaSoftware | Manuel Then</a></div></div></div></div></body></html>