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

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

See Also

Reference

SelectionPolicy Class

Microsoft.Windows.Design.Policies Namespace

ItemPolicy

FeatureProvider

FeatureConnector<TFeatureProviderType>

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility