次の方法で共有


EventReceiver 要素 (DeploymentManifest)

SharePoint イベント レシーバ オブジェクト インスタンス (SPEventReceiverDefinition) を表します。指定されたイベント レシーバ コレクションに応じて、イベント レシーバは SPFileSPListSPListItemSPWeb のいずれかのオブジェクトに対するイベントをリッスンします。

DECLARATION
<xs:element name="EventReceiver" 
        type="SPEventReceiverDefinition" 
        minOccurs="0" maxOccurs="unbounded" 
/>

USAGE
<EventReceivers>
        <EventReceiver
                Id="Guid"
                Name="xs:string"
                WebId="Guid"
                HostId="Guid"
                HostType="SPEventHostType"
                Type="SPEventReceiverType"
                SequenceNumber="xs:int"
                Assembly="xs:string"
                Class="xs:string"
                Data="xs:string"
                Filter="xs:string"
                Credential="xs:int"
                ItemId="xs:int"
        />
</EventReceivers>

SPEventReceiverDefinition

属性

属性

説明

ID

Guid 単純型 (DeploymentManifest)

必須。イベント レシーバ定義を表す一意識別子です。

Name

xs:string

必須。イベント レシーバの名前です。

WebId

Guid 単純型 (DeploymentManifest)

必須。イベント レシーバが登録されているサイトを表す一意識別子です。

HostId

Guid 単純型 (DeploymentManifest)

必須。イベントをホストしているオブジェクトを表す一意識別子です。

HostType

SPEventHostType 単純型 (DeploymentManifest)

必須。イベントをホストしているオブジェクトの種類です。ホストの種類は、SPEventHostType 単純型で定義されている列挙値である必要があります。

Type

SPEventReceiverType 単純型 (DeploymentManifest)

必須。イベント レシーバのイベントの種類です。イベント レシーバの種類は、SPEventReceiverType 単純型で定義されている列挙値である必要があります。

SequenceNumber

xs:int

必須。イベントのシーケンスでの相対的な順序を表す整数です。

Assembly

xs:string

必須。イベント レシーバであるアセンブリを表す厳密な名前です。

Class

xs:string

必須。イベント レシーバであるクラスです。

Data

xs:string

オプション。イベント レシーバに関連付けられているデータです。

Filter

xs:string

オプション。

Credential

xs:int

オプション。

ItemId

xs:int

オプション。

子要素

なし

親要素

EventReceivers 要素 (DeploymentManifest - SPFile)

EventReceivers 要素 (DeploymentManifest - SPList)

EventReceivers 要素 (DeploymentManifest - SPListItem)

EventReceivers 要素 (DeploymentManifest - SPWeb)

See Also

参照

SPEventReceiverDefinition

概念

DeploymentManifest スキーマ