Share via


RequirementAttribute.MeetsRequirement Method

Determines if the EditingContext meets the requirements specified in this attribute.

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

Syntax

'Declaration
Public MustOverride Function MeetsRequirement ( _
    context As EditingContext _
) As Boolean
public abstract bool MeetsRequirement(
    EditingContext context
)
public:
virtual bool MeetsRequirement(
    EditingContext^ context
) abstract
abstract MeetsRequirement : 
        context:EditingContext -> bool 
public abstract 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

RequirementAttribute Class

Microsoft.Windows.Design Namespace

RequiresContextItemAttribute

RequiresServiceAttribute

UsesItemPolicyAttribute

Other Resources

Understanding WPF Designer Extensibility