Partager via


ApprovalActivity.Threshold Property

Contains the total number of approvals that are required for the activity to be approved.

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

Usage

'Usage
Dim instance As ApprovalActivity
Dim value As Integer

value = instance.Threshold

instance.Threshold = value

Syntax

'Declaration
Public Property Threshold As Integer
public int Threshold { get; set; }
public:
property int Threshold {
    int get ();
    void set (int value);
}
/** @property */
public int get_Threshold ()

/** @property */
public void set_Threshold (int value)
public function get Threshold () : int

public function set Threshold (value : int)

Property Value

A Int32 value that indicates the total number of approvals that are needed for the request to be approved.

Remarks

This value indicates the total number of approvals that are required in order to approve the request. As approvals are received, the value is not modified to indicate the number of approvals that still must be received to approve the request.

If any of the approvers reject the request, the ApprovalActivity terminates, and the associated request is rejected. The ApprovalActivity validates all ApprovalResponses as soon as the Threshold value is reached to detect changes to group memberships that occur during the lifetime of the instance.

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

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