編輯

共用方式為


Coercion element (WorkflowInfo)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Specifies a coercion for converting data from one form to another.

Definition

<Coercions>
    <Coercion>    </Coercion>
</Coercions>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
Name Required text. The internal name for the coercion.
Assembly Required text. Specifies the binary file in which the coercion is implemented.
DisplayName Required text. Specifies the display name of the coercion.
CatchAll Required Boolean. True to show the coercion in scenarios in which either the DestinationType or the DestinationFieldType allows it, regardless of SourceType or SourceFieldType values. False to show the coercion only in scenarios in which SourceType or SourceFieldType specifies that it should be shown.
RankDefault Required integer. Specifies a sort value for the list of coercions.
SourceType Optional text. A class type from which the data is converted. If set, the client shows the coercion only when the previous value is of the matching type unless SourceFieldType or CatchAll specifies otherwise.
SourceFieldType Optional FieldInternalType. The field type to use to determine whether to show the coercion. If set, the client shows the coercion only when the previous value is of the matching type unless SourceFieldType or CatchAll specifies otherwise.
DestinationType Required text. The output class type of the coercion value. If the destination cannot handle this type, the coercion is not displayed.
DestinationFieldType Optional FieldInternalType. The output field type of the coercion. If the destination cannot handle this type, the coercion is not displayed.
ClassName Optional text. Uniquely identifies the class in the binary file that is specified by the Assembly.

Child elements

None

Parent elements

Coercions

See also