ArcObjects Library Reference (System)  

IPropertySupport.CanApply Method

Indicates if the receiver can apply the given object at that particular moment.

[Visual Basic .NET]
Public Function CanApply ( _
    ByVal pUnk As Object _
) As Boolean
[C#]
public bool CanApply (
    object pUnk
);
[C++]
HRESULT CanApply(
  LPUNKNOWN pUnk,
  VARIANT_BOOL* CanApply
);
[C++]

Parameters

pUnk [in]   pUnk is a parameter of type LPUNKNOWN CanApply [out, retval]   CanApply is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

CanApply 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