PolicyItemsChangedEventArgs Constructor
Initializes a new instance of the PolicyItemsChangedEventArgs class.
Namespace: Microsoft.Windows.Design.Policies
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Sub New ( _
policy As ItemPolicy, _
itemsAdded As IEnumerable(Of ModelItem), _
itemsRemoved As IEnumerable(Of ModelItem) _
)
public PolicyItemsChangedEventArgs(
ItemPolicy policy,
IEnumerable<ModelItem> itemsAdded,
IEnumerable<ModelItem> itemsRemoved
)
public:
PolicyItemsChangedEventArgs(
ItemPolicy^ policy,
IEnumerable<ModelItem^>^ itemsAdded,
IEnumerable<ModelItem^>^ itemsRemoved
)
new :
policy:ItemPolicy *
itemsAdded:IEnumerable<ModelItem> *
itemsRemoved:IEnumerable<ModelItem> -> PolicyItemsChangedEventArgs
public function PolicyItemsChangedEventArgs(
policy : ItemPolicy,
itemsAdded : IEnumerable<ModelItem>,
itemsRemoved : IEnumerable<ModelItem>
)
Parameters
- policy
Type: Microsoft.Windows.Design.Policies.ItemPolicy
The policy that has changed.
- itemsAdded
Type: System.Collections.Generic.IEnumerable<ModelItem>
The items that have been added to the policy since the last change event.
- itemsRemoved
Type: System.Collections.Generic.IEnumerable<ModelItem>
The items that have been removed from the policy since the last change event.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | policy is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
PolicyItemsChangedEventArgs Class
Microsoft.Windows.Design.Policies Namespace
FeatureConnector<TFeatureProviderType>