UpdateApprovalCollection.Add Method (IUpdateApproval)
Applies To: Windows Server Update Services
Adds an update approval to the end of the collection.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
public int Add(
IUpdateApproval value
)
public:
int Add(
IUpdateApproval^ value
)
member Add :
value:IUpdateApproval -> int
Public Function Add (
value As IUpdateApproval
) As Integer
Parameters
value
Type: Microsoft.UpdateServices.Administration.IUpdateApprovalAn IUpdateApproval of the update approval to add.
Return Value
Type: System.Int32
Zero-based index at which the update approval was added to the collection.
Exceptions
Exception
Condition
The update approval already exists in the collection.
value cannot be null.
See Also
Add Overload
UpdateApprovalCollection Class
Microsoft.UpdateServices.Administration Namespace
Return to top