SecondarySelectionPolicy.IsInPolicy Method
Gets a value indicating whether the specified item is in the selection and is not the primary selection.
Namespace: Microsoft.Windows.Design.Policies
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Protected Overrides Function IsInPolicy ( _
selection As Selection, _
item As ModelItem _
) As Boolean
protected override bool IsInPolicy(
Selection selection,
ModelItem item
)
protected:
virtual bool IsInPolicy(
Selection^ selection,
ModelItem^ item
) override
abstract IsInPolicy :
selection:Selection *
item:ModelItem -> bool
override IsInPolicy :
selection:Selection *
item:ModelItem -> bool
protected override function IsInPolicy(
selection : Selection,
item : ModelItem
) : boolean
Parameters
- selection
Type: Microsoft.Windows.Design.Interaction.Selection
Selection state.
- item
Type: Microsoft.Windows.Design.Model.ModelItem
Item to be evaluated.
Return Value
Type: System.Boolean
true if item is not the primary selection; otherwise, false.
.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
SecondarySelectionPolicy Class
Microsoft.Windows.Design.Policies Namespace