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

Visual Basic
Dim instance As CreateResourceActivity
Dim value As CreateRequestParameter()

value = instance.CreateParameters

instance.CreateParameters = value

Syntax

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

/** @property */
public void set_CreateParameters (CreateRequestParameter[] value)
JScript
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.

C#  Copy Code
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

Target Platforms

Windows 2008 x64 Edition

Change History

See Also