Method or data member not found

Last Published: April 25, 2020

Error Message

Running ArcObjects code returns the following error:

"Method or data member not found."


The Set keyword is used incorrectly. Set is required to assign a property by reference and to create new objects. Set is not required when setting a property by value.

Solution or Workaround

Follow these guidelines when deciding whether or not to use Set in your code:

  • Use Set to assign a property by reference.

    Set pPageLayout = pMxDoc.PageLayout

  • Set is not necessary when a property is assigned by value.

    pMap.MapUnits = esriFeet

  • Set is required when creating new objects.

    Dim pFeature as IFeature
    Set pFeature = New Feature

    For more information on Set see the book 'Exploring ArcObjects'.

Article ID:000003476

  • ArcMap 8 x

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options