SelectionPolicy.IsInPolicy Method
Gets a value indicating whether the specified 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 _
) As Boolean
protected virtual bool IsInPolicy(
Selection selection,
ModelItem item
)
protected:
virtual bool IsInPolicy(
Selection^ selection,
ModelItem^ item
)
abstract IsInPolicy :
selection:Selection *
item:ModelItem -> bool
override IsInPolicy :
selection:Selection *
item:ModelItem -> bool
protected function IsInPolicy(
selection : Selection,
item : ModelItem
) : boolean
Parameters
- selection
Type: Microsoft.Windows.Design.Interaction.Selection
A Selection to filter with policy logic.
- item
Type: Microsoft.Windows.Design.Model.ModelItem
Item to be evaluated.
Return Value
Type: System.Boolean
true if item 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
FeatureConnector<TFeatureProviderType>