English

ArcObjects WriteOnly Properties are not accessible and throw “BC30643 Property is of an unsupported type” compile error in Microsoft Visual Studio 2015 with VB.NET

Error Message

When trying to compile ArcObjects code to set an interface property which has an input parameter (typically the parameter is an index), Visual Studio 2015 returns  the following compiler error: 

Error:   
BC30643 Property ‘ESRI.ArcGIS.xxx’ is of an unsupported type

Visual Basic

Error:   
BC30643 Property is of an unsupported type (Visual Basic)
Here is an example using IFieldsEdit.

User-added image
User-added image

C#

When trying to compile ArcObjects code to set an interface property which has an input parameter (typically the parameter is an index), Visual Studio 2015 returns the following compiler error:

Error:   
CS1546 Property, indexer, or event is not supported by the language, 
try directly calling accessor method...
Here is an example using IFieldsEdit.

User-added image
User-added image

Cause

Several WriteOnly properties with input parameters are affected and inaccessible with Visual Basic in Visual Studio 2015 and include, but may not be limited to:

  • IFieldsEdit
  • IGeometryDefEdit
  • ITableSort
  • ISpatialJoin
  • ISymbolCollectionElement

Solution or Workaround

Workaround for Visual Basic
For the issue with Visual Basic, use Visual Studio 2013 to compile and debug the code.

Workaround for C#
When using C#, following the compiler output, rewrite the code as shown below:
User-added image

This fixes the compiler error.