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
- context
Type: Microsoft.Windows.Design.EditingContext
The editing context to check.
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
- 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 Namespace