Share via


UpdateResourceActivity.UpdateParameters Property

Gets and sets an array of Microsoft.ResourceManagement.WebServices.WSResourceManagement.UpdateRequestParameter objects that represent the delta updates that the activity will apply to the target resource.

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

Usage

'Usage
Dim instance As UpdateResourceActivity
Dim value As UpdateRequestParameter()

value = instance.UpdateParameters

instance.UpdateParameters = value

Syntax

'Declaration
<CategoryAttribute("Parameters")> _
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)> _
<BrowsableAttribute(True)> _
Public Property UpdateParameters As UpdateRequestParameter()
[CategoryAttribute("Parameters")] 
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)] 
[BrowsableAttribute(true)] 
public UpdateRequestParameter[] UpdateParameters { get; set; }
[CategoryAttribute(L"Parameters")] 
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility::Visible)] 
[BrowsableAttribute(true)] 
public:
property array<UpdateRequestParameter^>^ UpdateParameters {
    array<UpdateRequestParameter^>^ get ();
    void set (array<UpdateRequestParameter^>^ value);
}
/** @property */
public UpdateRequestParameter[] get_UpdateParameters ()

/** @property */
public void set_UpdateParameters (UpdateRequestParameter[] value)
public function get UpdateParameters () : UpdateRequestParameter[]

public function set UpdateParameters (value : UpdateRequestParameter[])

Property Value

An array of UpdateRequestParameter objects.

Example

The following example adds six months to the current time and uses this value for the ExpirationTime attribute of the target.

this.updateResourceActivity1.ResourceId = new System.Guid("12345678-1234-1234-1234-123456789012");
UpdateRequestParameter updateRequestParameter1 = new UpdateRequestParameter();
updateRequestParameter1.PropertyName = "ExpirationTime";
updateRequestParameter1.Value = DateTime.Now.AddMonths(6);
updateRequestParameter1.Mode = UpdateMode.Modify;

this.updateResourceActivity1.UpdateParameters = new UpdateRequestParameter[]
{
      updateRequestParameter1
};

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

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