Compartilhar via


UpdateScope Class

 

Applies To: Windows Server Update Services

Defines the filter for a list of updates.

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

Inheritance Hierarchy

System.Object
  Microsoft.UpdateServices.Administration.UpdateScope

Syntax

public class UpdateScope
public ref class UpdateScope 
type UpdateScope = class end
Public Class UpdateScope

Constructors

Name Description
System_CAPS_pubmethod UpdateScope()

Initializes a new instance of UpdateScope.

Properties

Name Description
System_CAPS_pubproperty ApprovedComputerTargetGroups

Gets the list of target groups to search for approvals. An update will be included only if it is approved for install or uninstall to at least one of these groups. If the list is empty, then no filtering will be done based on approved target groups. Defaults to empty.

System_CAPS_pubproperty ApprovedStates

Gets or sets the approval states to search for. An update will be included only if it matches at least one of the specified states. This value may be a combination of any number of values from ApprovedStates. Defaults to Any.

System_CAPS_pubproperty Categories

Gets or sets the list of update categories to search. An update will be included only if it belongs to at least one of these groups. If the list is empty, then no filtering will be done based on category; updates from all categories will be included. Defaults to empty.

System_CAPS_pubproperty Classifications

Gets or sets the list of update classifications to search. An update will be included only if it belongs to at least one of these classifications. If the list is empty, then no filtering will be done based on classification; updates from all classifications will be included. Defaults to empty.

System_CAPS_pubproperty ExcludedInstallationStates

Gets or sets the installation states to exclude. An update will be included only if it does not have any computers in any of the specified states. This value may be a combination of any number of values from UpdateInstallationStates. Defaults to 0.

System_CAPS_pubproperty ExcludeOptionalUpdates

Gets or sets whether to exclude optional updates from the list.

System_CAPS_pubproperty FromArrivalDate

Gets or sets the minimum arrival date to search for. An update will be included only if its arrival date is greater than or equal to this value.

System_CAPS_pubproperty FromCreationDate

Gets or sets the minimum creation date to search for. An update will be included only if its creation date is greater than or equal to this value.

System_CAPS_pubproperty IncludedInstallationStates

Gets or sets the installation states to search for. An update will be included only if it has at least one computer in one of the specified states. This value may be a combination of any number of values from UpdateInstallationStates.

System_CAPS_pubproperty IsWsusInfrastructureUpdate

Gets or sets whether or not to filter for WSUS infrastructure updates. If set to true, only WSUS infrastructure updates will be included. If set to false, all updates are included. Defaults to false.

System_CAPS_pubproperty TextIncludes

Gets or sets the string to search for. An update will be included only if its Title, Description, Knowledge Base articles, or security bulletins contains this string.

System_CAPS_pubproperty TextNotIncludes

Gets or sets the string to exclude. An update will be not be included if its Title, Description, Knowledge Base articles, or security bulletins contains this string.

System_CAPS_pubproperty ToArrivalDate

Gets or sets the maximum arrival date to search for. An update will be included only if its arrival date is less than or equal to this value.

System_CAPS_pubproperty ToCreationDate

Gets or sets the maximum creation date to search for. An update will be included only if its creation date is less than or equal to this value.

System_CAPS_pubproperty UpdateApprovalActions

Gets or sets the update approval actions to search for. An update will be included only if it is approved to at least one computer target group for one of the specified approval actions. This value may be a combination of any number of values from UpdateApprovalActions. Defaults to All.

System_CAPS_pubproperty UpdateApprovalScope

Gets or sets the UpdateApprovalScope object that can be used to filter updates based on their approval properties.

System_CAPS_pubproperty UpdateSources

Gets or sets the update sources to search for. An update will be included only if its update source is included in this value. This value may be a combination of any number of values from UpdateSources.

System_CAPS_pubproperty UpdateTypes

Gets or sets the update types to search for. An update will be included only if its update type is included in this value.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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.

See Also

Microsoft.UpdateServices.Administration Namespace

Return to top