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
- 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
RequiresContextItemAttribute Class
Microsoft.Windows.Design Namespace
FeatureConnector<TFeatureProviderType>