次の方法で共有


ActivityBody 要素

(Parameter 要素)(coercionParametersType complexType)(Action4)

適用対象: SharePoint Server 2013

強制型 coercionParametersType の要素。強制として使用されるアクティビティの複合バインディング用の ActivityBody 。 要素は、アクティビティの引数バインディングを提供する xaml フラグメントを提供します。

使用方法

    <complexType name="coercionParametersType">
        <Parameter>
            <ActivityBody />
        </Parameter>
    </complexType>

要素の情報

情報 場所
要素の種類
Namespace
スキーマ ファイル Actions4.xsd

定義

    <xs:element name="ActivityBody"   minOccurs="1"   maxOccurs="1" >
               <xs:complexType>
               <xs:sequence>
         <xs:element name="ActivityBody" >

      </xs:element>
           </xs:sequence>
           </xs:complexType>
      </xs:element>

要素と属性

スキーマで sequenceminOccursmaxOccurschoice などの具体的な要件が定義されている場合は、定義のセクションを参照してください。

親要素

要素

説明

パラメーター

子要素

なし。

属性

なし。

定義の例

次に、 ActivityBody 要素を使用する強制のサンプル定義を示します。

    <Coercion Name="DateTimeToStringShortDate"
     DisplayName="Short Date"
     CatchAll="false"
     RankDefault="160"
     SourceType="System.DateTime"
     DestinationType="System.String"
     Id="F806859B-1D48-443C-ADF8-E014D9ECCE7B"
     ClassName="Microsoft.Activities.Expressions.ToString"
     Assembly="Microsoft.Activities, Version=2.0.0.0, Culture=neutral,
       PublicKeyToken=31bf3856ad364e35"
     SourceProperty="Object">
       <Parameters>
          <Parameter Name="CultureName" Type="System.String">
             <ActivityBody>
                <p:GetConfigurationValue
                xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
                xmlns:p="http://schemas.microsoft.com/workflow
                     /2012/xaml/activities"
                Name="Microsoft.SharePoint.ActivationProperties.CultureName">
                </p:GetConfigurationValue>
             </ActivityBody>
          </Parameter>
          <Parameter Name="Format" Type="System.String" Value="d" />
       </Parameters>
    </Coercion>

上記の強制定義では、次の XAML フラグメントがワークフローに挿入されます。

    <p:ToString Format="d">
       <p:ToString.CultureName>
          <InArgument x:TypeArguments="x:String">
             <p:GetConfigurationValue
                 Name="Microsoft.SharePoint.ActivationProperties.CultureName">
             </p:GetConfigurationValue>
          </InArgument>
       </p:ToString.CultureName>
    </p:ToString>