<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFOBJECT: コンポーネントオブジェクト</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFOBJECT: コンポーネントオブジェクト</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
ColdFusion コンポーネント (CFC) オブジェクトのインスタンスを作成します。
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cfobject
   name = &quot;variable name&quot;
   component = &quot;component name&quot;&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfcollection、cfcomponent、cfexecute、cfindex、cfreport、cfsearch、cfwddx、『ColdFusion MX 開発ガイド』の第10章の「ColdFusion コンポーネントの作成と使用」 の「ColdFusion コンポーネントの使用」
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
cfobject タグが CFC のインスタンスを作成するときに、CFC 内のコンストラクタコードが実行されます。つまり、メソッド定義にないコードが実行されます。
</p>

<p>
UNIX システムでは、まず指定のコンポーネント名と同じ名前 (ただしすべて小文字) のファイルが検索されます。これに該当するファイルが見つからない場合は、大文字小文字の違いも含めて、指定されたコンポーネント名とまったく同じ名前のファイルが次に検索されます。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span><pre>&lt;!--- インスタンス作成とメソッド呼び出しを別々に行います。複数の呼び出しを許可します。 ---&gt;
&lt;cfobject
name=&quot;quoteService&quot;
component=&quot;nasdaq.quote&quot;&gt;
&lt;cfinvoke
component=&quot;#quoteService#&quot;
method=&quot;getLastTradePrice&quot;
symbol=&quot;macr&quot;
returnVariable=&quot;res&quot;&gt;
&lt;cfoutput&gt;#res#&lt;/cfoutput&gt;&lt;br&gt;

&lt;cfinvoke
component=&quot;#quoteService#&quot;
method=&quot;getLastTradePrice&quot;
symbol=&quot;mot&quot;
returnVariable=&quot;res&quot;&gt;
&lt;cfoutput&gt;#res#&lt;/cfoutput&gt;
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="NAME">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">NAME</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>文字列です。インスタンス化されたコンポーネント名を指定します。名前の最初と最後の文字にピリオドを使用することはできません。</p>

  </td>
  </tr>
  </table>
</div>
<div id="COMPONENT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">COMPONENT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">必須</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">



<p>インスタンス化するコンポーネントの名前です。</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
