Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Evaluates whether the specified parent item is to be included in the policy.
Namespace: Microsoft.Windows.Design.Policies
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected Overridable Function IsInPolicy ( _
selection As Selection, _
item As ModelItem, _
parent As ModelItem _
) As Boolean
protected virtual bool IsInPolicy(
Selection selection,
ModelItem item,
ModelItem parent
)
protected:
virtual bool IsInPolicy(
Selection^ selection,
ModelItem^ item,
ModelItem^ parent
)
abstract IsInPolicy :
selection:Selection *
item:ModelItem *
parent:ModelItem -> bool
override IsInPolicy :
selection:Selection *
item:ModelItem *
parent:ModelItem -> bool
protected function IsInPolicy(
selection : Selection,
item : ModelItem,
parent : ModelItem
) : boolean
Parameters
- selection
Type: Microsoft.Windows.Design.Interaction.Selection
Selection state.
- item
Type: Microsoft.Windows.Design.Model.ModelItem
Item to be evaluated.
- parent
Type: Microsoft.Windows.Design.Model.ModelItem
Parent of item to be evaluated.
Return Value
Type: System.Boolean
true if parent is to be included in the policy; otherwise, false.
Remarks
Override this method when a simple check is sufficient for policy logic.
.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
Microsoft.Windows.Design.Policies Namespace