Поделиться через


IUpdateServer.CreateInstallApprovalRule Method (String)

 

Applies To: Windows Server Update Services

Create a new empty Install Automatic Approval Rule

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

IAutomaticUpdateApprovalRule CreateInstallApprovalRule(
    string name
)
IAutomaticUpdateApprovalRule^ CreateInstallApprovalRule(
    String^ name
)
abstract CreateInstallApprovalRule : 
        name:string -> IAutomaticUpdateApprovalRule
Function CreateInstallApprovalRule (
    name As String
) As IAutomaticUpdateApprovalRule

Parameters

Return Value

Type: Microsoft.UpdateServices.Administration.IAutomaticUpdateApprovalRule

The new IAutomaticUpdateApprovalRule object that was created

Exceptions

Exception

Condition

ArgumentNullException

name cannot be null. Use String.Empty instead.

Remarks

This operation requires WSUS Administrator privileges.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top