Share via


CreateResourceActivity.CreateParameters Property

Gets and sets an array of CreateRequestParameter objects that represent the attribute values that you set on the new resource (see example).

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

Usage

'Usage
Dim instance As CreateResourceActivity
Dim value As CreateRequestParameter()

value = instance.CreateParameters

instance.CreateParameters = value

Syntax

'Declaration
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> _
Public Property CreateParameters As CreateRequestParameter()
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)] 
public CreateRequestParameter[] CreateParameters { get; set; }
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility::Visible)] 
public:
property array<CreateRequestParameter^>^ CreateParameters {
    array<CreateRequestParameter^>^ get ();
    void set (array<CreateRequestParameter^>^ value);
}
/** @property */
public CreateRequestParameter[] get_CreateParameters ()

/** @property */
public void set_CreateParameters (CreateRequestParameter[] value)
public function get CreateParameters () : CreateRequestParameter[]

public function set CreateParameters (value : CreateRequestParameter[])

Property Value

A CreateRequestParameter array.

Example

The following example sets the ObjectType, DisplayName, and AccountName attributes of a new Person resource that is being created.

CreateRequestParameter createrequestparameter1 = new CreateRequestParameter();
Createrequestparameter1.PropertyName = "ObjectType";
            Createrequestparameter1.Value = "Person";

CreateRequestParameter createrequestparameter2 = new CreateRequestParameter();
            Createrequestparameter2.PropertyName = "DisplayName";
            createrequestparameter2.Value = "John Doe";

CreateRequestParameter createrequestparameter3 = new CreateRequestParameter();
            Createrequestparameter3.PropertyName = "AccountName";
            Createrequestparameter3.Value = "jdoe";
      
this.createResourceActivity1.CreateParameters = new CreateRequestParameter[] {
                        createrequestparameter1,
                        createrequestparameter2,
                        createrequestparameter3};

Remarks

Set the CreateParameters property to capture the attributes to set. You must always set the ObjectType property when you are creating a new Resource.

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

Change History

See Also

Reference

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