委任コントロール

適用対象: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

委任コントロールにより、特定機能のコントロールの委任を指定し、それらのコントロールに対する機能プロバイダを選択することができます。

次の例では、SharePoint ページの検索エリアの入力ボックスで実装するコントロールおよびヒントを指定します。

    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <Control
        Id="SmallSearchInputBox"
        Sequence="100"
        ControlSrc="~/_controltemplates/searcharea.ascx">
        <Property Name="SearchTextToolTip">Search this site</Property>
        <Property Name="SearchImageToolTip">Go</Property>
      </Control>
    </Elements>

関連項目