Share via


InstallationBehavior.InstallationBehavior(bool, bool, InstallationImpact, RebootBehavior, bool)

Initializes a new instance of the InstallationBehavior class.

public InstallationBehavior(boolisSupported,
boolcanRequestUserInput,
InstallationImpactimpact,
RebootBehaviorrebootBehavior,
boolrequiresNetworkConnectivity);
Public Sub New( _
  ByVal isSupported As bool, _
  ByVal canRequestUserInput As bool, _
  ByVal impact As InstallationImpact, _
  ByVal rebootBehavior As RebootBehavior, _
  ByVal requiresNetworkConnectivity As bool _
)

Parameters

  • isSupported
    true if the update supports the update approval action; otherwise, false.
  • canRequestUserInput
    true if the update can require input from the user; otherwise, false.
  • impact
    Specify the impact to the user and applications when installing the update on the computer. For details, see InstallationImpact.
  • rebootBehavior
    Specify if the update requires the computer to be restarted in order for the update to take effect. For details, see RebootBehavior.
  • requiresNetworkConnectivity
    true if the installation of the update requires network connectivity; otherwise, false.

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.