?? f60b12e0-b96b-c972-f701-dafd1cf2dedf.htm
字號:
?<html xmlns:MSHelp="http://msdn.microsoft.com/mshelp"><head><title>waitForAttachment Method (milliseconds)</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/StyleUtilities.js"> </script><script type="text/javascript" src="../scripts/SplitScreen.js"> </script><script type="text/javascript" src="../scripts/ElementCollection.js"> </script><script type="text/javascript" src="../scripts/MemberFilter.js"> </script><script type="text/javascript" src="../scripts/CollapsibleSection.js"> </script><script type="text/javascript" src="../scripts/LanguageFilter.js"> </script><script type="text/javascript" src="../scripts/CookieDataStore.js"> </script><meta name="file" content="f60b12e0-b96b-c972-f701-dafd1cf2dedf" /><xml xmlns:msxsl="urn:schemas-microsoft-com:xslt"><MSHelp:Attr Name="AssetID" Value="M:Phidgets.Phidget.waitForAttachment(System.Int32)" /><MSHelp:Keyword Index="A" Term="M:Phidgets.Phidget.waitForAttachment(System.Int32)" /><MSHelp:Keyword Index="A" Term="frlrfPhidgetsPhidgetClasswaitForAttachmentTopic" /><MSHelp:Keyword Index="K" Term="waitForAttachment method" /><MSHelp:Keyword Index="K" Term="Phidget.waitForAttachment method" /><MSHelp:Keyword Index="F" Term="waitForAttachment" /><MSHelp:Keyword Index="F" Term="Phidget.waitForAttachment" /><MSHelp:Keyword Index="F" Term="Phidgets.Phidget.waitForAttachment" /><MSHelp:Attr Name="TopicType" Value="apiref" /><MSHelp:Attr Name="TopicType" Value="kbSyntax" /><MSHelp:Attr Name="APIType" Value="Managed" /><MSHelp:Attr Name="APILocation" Value="Phidget21.NET.dll" /><MSHelp:Attr Name="APIName" Value="..waitForAttachment" /><MSHelp:Attr Name="Locale" Value="en-us" /><MSHelp:Attr Name="Abstract" Value="Waits for this Phidget to become available after the specified time." /></xml></head><body><script type="text/javascript">var store = new CookieDataStore('docs');registerEventHandler(window, 'load', function() { var ss = new SplitScreen('control', 'main'); selectLanguage(store.get('lang')); });</script><div id="control"><span class="productTitle">A Sandcastle Documented Class Library</span><br /><span class="topicTitle">waitForAttachment Method (milliseconds)</span><br /><div id="toolbar"><span id="chickenFeet"><a href="d4648875-d41a-783b-d5f4-638df39ee413.htm">Namespaces</a> ? <a href="9332f00d-a9eb-15d0-fa45-c524653f1513.htm">Phidgets</a> ? <a href="794b3221-4163-1211-c0e6-3055eea3768b.htm">Phidget</a> ? <span class="selflink">waitForAttachment(Int32)</span></span><span id="languageFilter"><select id="languageSelector" onchange="var names = this.value.split(' '); toggleVisibleLanguage(names[1]); lfc.switchLanguage(names[0]); store.set('lang',this.value); store.save();"><option value="CSharp cs">C#</option><option value="VisualBasic vb">Visual Basic</option><option value="ManagedCPlusPlus cpp">Visual C++</option></select></span><script>var sd = getStyleDictionary(); var lfc = new LanguageFilterController();</script></div></div><div id="main"><span style="color: DarkGray"> </span><div class="summary">
Waits for this Phidget to become available after the specified time.
</div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Declaration Syntax</div><div class="sectionContent"><table class="filter"><tr class="tabs" id="syntaxTabs"><td class="tab" x-lang="CSharp" onclick="st.toggleClass('x-lang','CSharp','activeTab','tab'); sb.toggleStyle('x-lang','CSharp','display','block','none');">C#</td><td class="tab" x-lang="VisualBasic" onclick="st.toggleClass('x-lang','VisualBasic','activeTab','tab'); sb.toggleStyle('x-lang','VisualBasic','display','block','none');">Visual Basic</td><td class="tab" x-lang="ManagedCPlusPlus" onclick="st.toggleClass('x-lang','ManagedCPlusPlus','activeTab','tab'); sb.toggleStyle('x-lang','ManagedCPlusPlus','display','block','none');">Visual C++</td></tr></table><div id="syntaxBlocks"><div class="code" x-lang="CSharp"><pre><span class="keyword">public</span> <span class="keyword">void</span> <span class="identifier">waitForAttachment</span>(
<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="parameter">milliseconds</span>
)</pre></div><div class="code" x-lang="VisualBasic"><pre><span class="keyword">Public</span> <span class="keyword">Sub</span> <span class="identifier">waitForAttachment</span> ( _
<span class="parameter">milliseconds</span> <span class="keyword">As</span> <a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">Integer</a> _
)</pre></div><div class="code" x-lang="ManagedCPlusPlus"><pre><span class="keyword">public</span>:
<span class="keyword">void</span> <span class="identifier">waitForAttachment</span>(
<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">int</a> <span class="parameter">milliseconds</span>
)</pre></div></div><script type="text/javascript">
var st = new ElementCollection('syntaxTabs');
var sb = new ElementCollection('syntaxBlocks');
lfc.registerTabbedArea(st, sb);
st.toggleClass('x-lang','CSharp','activeTab','tab');
sb.toggleStyle('x-lang','CSharp','display','block','none');
</script></div></div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Parameters</div><div class="sectionContent"><dl><dt><span class="parameter">milliseconds</span>?(<a href="http://msdn2.microsoft.com/en-us/td2s409d" target="_blank">Int32</a>)</dt><dd>Specified wait time in milliseconds</dd></dl></div></div><div class="section"><div class="sectionTitle" onclick="toggleSection(this.parentNode)"><img src="../icons/collapse_all.gif" /> Remarks</div><div class="sectionContent"><p>This method can be called after open has been called to wait for thid Phidget to become available. This is usefull because open is asynchronous (and thus returns immediately), and most methods will throw a PhidgetException is they are called before a device is actually ready. This method is synonymous with polling the isAttached method until it returns True, or using the Attach event.</p><p>This method blocks indefinitely until the Phidget becomes available. This can be quite some time (forever), if the Phidget is never plugged in.</p><p>This method uses the attach handler internally to determine when the Phidget becomes available.</p></div></div><p><div id="footer"> </div>Assembly: Phidget21.NET (Module: Phidget21.NET) Version: 2.1.3.23</p></div></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -