次の方法で共有


アダプター フレームワーク構成拡張機能の有効化

BizTalk アダプター フレームワークには、ユーザー エクスペリエンスを向上させるための拡張機能がいくつか用意されています。 これらの拡張機能を使用するには、フレームワークのスキーマ BiztalkAdapterFramework.xsd をインポートします。 スキーマをインポートすると、装飾や特殊化された型にアクセスし、以下で説明するようにアダプターの構成スキーマで使用できます。 次のコードは、スキーマをインポートする方法を示しています。

<?xml version="1.0" encoding="utf-8" ?><xs:schema   targetNamespace="http://tempuri.org/XMLSchema.xsd"   
         elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema.xsd"   
         xmlns:baf="BiztalkAdapterFramework.xsd"   
         xmlns:xs="http://www.w3.org/2001/XMLSchema"   
         xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">  
   <xs:import namespace="BiztalkAdapterFramework.xsd" />  
. . .  
</xs:schema>  

BizTalk アダプター フレームワーク拡張機能スキーマ XSD のインポート

Adapter Framework 拡張機能スキーマ XSD をインポートすると、要素の型として <baf:FileName> などの装飾を使用できます。これにより、要素の編集時にファイル名がポップアップ表示されます。

追加の装飾は、インターフェイス内のプロパティの表示を制御します。 たとえば、 <baf:description> 装飾は、要素にヘルプ テキストを追加します。 <baf:description>装飾は、プロパティ ページの下部にテキストを表示します。 <baf:browsable>装飾は、インターフェイスから要素を非表示にします。 次のコードは、構成スキーマ内でこれらの要素を使用する方法を示しています。

<?xml version="1.0" encoding="utf-8" ?><xs:schema   targetNamespace="http://tempuri.org/XMLSchema.xsd"   
         elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema.xsd"   
         xmlns:baf="BiztalkAdapterFramework.xsd"   
         xmlns:xs="http://www.w3.org/2001/XMLSchema"   
         xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">  
   <xs:import namespace="BiztalkAdapterFramework.xsd" />  
   <xs:element name="Send">  
      <xs:complexType>  
         <xs:sequence>  
            <xs:element name="directory" type="xs:string" />  
               <xs:annotation>  
                  <xs:appinfo>  
                     <baf:designer>  
                        <baf:description>Enter the directory that will receive sent files..  
                        </baf:description>  
                     </baf:designer>  
                  </xs:appinfo>  
               </xs:annotation>  
            </xs:element>  
            <xs:element name="fileName" type="" />  
            <xs:element name="sendBatchSize" type="xs:int" />  
            <xs:element name="fileCopyMode" type="CopyMode" />  
            <xs:element name="uri" type="xs:string" >  
               <xs:annotation>  
                  <xs:appinfo>  
                     <baf:designer>  
                        <baf:browsable show="false" />  
                     </baf:designer>  
                  </xs:appinfo>  
               </xs:annotation>  
            </xs:element>  
         </xs:sequence>  
      </xs:complexType>  
   </xs:element>  
   <xs:simpleType name="CopyMode">  
      <xs:restriction base="xs:string">  
         <xs:enumeration value="Append">  
            <xs:annotation>  
               <xs:documentation>= 0</xs:documentation>  
            </xs:annotation>  
         <xs:enumeration value="Create">  
            <xs:annotation>  
               <xs:documentation>= 1</xs:documentation>  
            </xs:annotation>  
         <xs:enumeration value="CreateNew">  
            <xs:annotation>  
               <xs:documentation>= 2</xs:documentation>  
            </xs:annotation>  
         </xs:enumeration>  
      </xs:restriction>  
   </xs:simpleType>  
</xs:schema>  

こちらもご覧ください

アダプター フレームワーク構成スキーマ拡張機能