Share via


RequiresContextItemAttribute.MeetsRequirement Method

Indicates whether the editing context contains a context item of type ContextItemType.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Overrides Function MeetsRequirement ( _
    context As EditingContext _
) As Boolean
public override bool MeetsRequirement(
    EditingContext context
)
public:
virtual bool MeetsRequirement(
    EditingContext^ context
) override
abstract MeetsRequirement : 
        context:EditingContext -> bool 
override MeetsRequirement : 
        context:EditingContext -> bool 
public override function MeetsRequirement(
    context : EditingContext
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the attribute's requirements are met; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException

context is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

RequiresContextItemAttribute Class

Microsoft.Windows.Design Namespace

RequiresServiceAttribute

UsesItemPolicyAttribute

FeatureProvider

FeatureConnector<TFeatureProviderType>

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility