RequiresServiceAttribute.MeetsRequirement Method

Indicates whether the editing context contains a service of type ServiceType.

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

RequiresServiceAttribute Class

Microsoft.Windows.Design Namespace

RequiresContextItemAttribute

UsesItemPolicyAttribute

PrimarySelectionPolicy

FeatureProvider

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility