Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CrmWorkflowActivityAttribute Class (Sdk Assembly)

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Find the latest SDK documentation: CRM 2015 SDK

Specifies the required attribute for every custom workflow activity class.

The CrmWorkflowActivityAttribute class inherits from System.Attribute. It implements the System.Runtime.InteropServices._Attribute interface. It exposes the following members.

ConstructorDescription
CrmWorkflowActivityAttributeInitializes a new instance of the CrmWorkflowActivityAttribute class.

Instance PropertyDescription
GroupNameGets the name of the group.
NameGets the name of the activity.

Example

[CrmWorkflowActivity("Calculate Distance","Mappoint Utilities")]
public class DistanceCalculator : SequenceActivity
{
    protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
    {
        // Do something here.
        return ActivityExecutionStatus.Closed;
    }
}

Requirements

Namespace: Microsoft.Crm.Workflow

Assembly: Microsoft.Crm.Sdk.dll

See Also

Concepts

SampleCode

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2015 Microsoft