Partager via


CreateResourceActivity Class

An activity that creates a new instance of a resource (for example, a Person) in the FIM Service database.

Namespace: Microsoft.ResourceManagement.Workflow.Activities
Assembly: Microsoft.ResourceManagement (in Microsoft.ResourceManagement.dll)

Usage

'Usage
Dim instance As CreateResourceActivity

Syntax

'Declaration
Public NotInheritable Class CreateResourceActivity
    Inherits Activity
public sealed class CreateResourceActivity : Activity
public ref class CreateResourceActivity sealed : public Activity
public final class CreateResourceActivity extends Activity
public final class CreateResourceActivity extends Activity

Remarks

The work of this activity occurs in the overloaded Execute method. There is no need for additional child activities or additional Windows Workflow Foundation (WF) execution bookmarks.

Sample usage:

  1. Set the ActorId property of the activity.

  2. Set the CreateParameters property to capture the attributes to set. You must always set the ObjectType attribute when you create a new resource.

Inheritance Hierarchy

System.Object
   System.Workflow.ComponentModel.DependencyObject
     System.Workflow.ComponentModel.Activity
      Microsoft.ResourceManagement.Workflow.Activities.CreateResourceActivity

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008, and Windows 2000

Target Platforms

See Also

Reference

CreateResourceActivity Members
Microsoft.ResourceManagement.Workflow.Activities Namespace
Microsoft.ResourceManagement.Workflow.Activities

Other Resources

Custom Activities and Workflows