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


IElementProperties2.CustomProperty Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IE > IElementProperties2 Interface > IElementProperties2.CustomProperty Property
ArcGIS Developer Help

IElementProperties2.CustomProperty Property

Custom property.

[Visual Basic .NET]
Public Property CustomProperty As Object
[C#]
public object CustomProperty {get; set;}
[C++]
HRESULT get_CustomProperty(
  Variant* CustomProperty
);
[C++]
HRESULT put_CustomProperty(
  VARIANT CustomProperty
);
[C++]
Parameters
CustomProperty [out, retval]

CustomProperty is a parameter of type VARIANT* CustomProperty [in]
CustomProperty is a parameter of type VARIANT

Product Availability

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

Remarks

CustomProperty is a place for developers to attach custom objects to an element. Previous versions of the software required that the specified variant implement IUnknown, but that requirement has since been removed.

A custom object must implement a persistence interface, usually IPersistStream or IPersistVariant. Also, one alternative to writing a custom object is to use a PropertySet or XMLPropertySet.

This property is not used by the core ArcObjects functionality, it is strictly for developer use.

See Also

IElementProperties2 Interface

.NET Samples

Move a graphic along a path in ArcMap