This document is archived and information here might be outdated.  Recommended version.


IPropertySupport.Applies Method (ArcObjects .NET 10.7 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IP > IPropertySupport Interface > IPropertySupport.Applies Method
ArcGIS Developer Help

IPropertySupport.Applies Method

Indicates if the receiver can apply the given object at any given time.

[Visual Basic .NET]
Public Function Applies ( _
    ByVal pUnk As Object _
) As Boolean
[C#]
public bool Applies (
    object pUnk
);
[C++]
HRESULT Applies(
  LPUNKNOWN pUnk
);
[C++]
Parameters
pUnk [in]

pUnk is a parameter of type IUnknown

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Applies indicates whether the specified object can be applied to the current object.  For instance, we might want to ask our CircleElement whether a Color object applies to it.  If it does, then we can use the Apply method to update our CircleElement with the new Color object.

CanApply differs from Applies in that it is a check for the editability of the object at any given time.  Applies indicates whether an object can be applied at all, while CanApply indicates whether an object can be applied at that particular moment.

See Also

IPropertySupport Interface