ArcObjects Library Reference  (Schematic)    

INgElementType.AssociatedProperties Property

List of properties related to the element type that are associated with the attribute named 'attributeName' or the list of all the properties related to the element type when no attribute name is specified.

[Visual Basic 6.0]
Property AssociatedProperties(
    [ByVal attributeName As String] _
) As INgProperties
[Visual Basic .NET]
Public Function get_AssociatedProperties ( _
    [ByVal attributeName As String] _
) As INgProperties
[C#]
public INgProperties get_AssociatedProperties (
    string attributeName
);
[C#]

Optional Values

attributeName   Supply as a default value.
[Java]
public INgProperties getAssociatedProperties (
    String attributeName
)
[C++]
HRESULT get_AssociatedProperties(
  BSTR attributeName,
  INgProperties** pVal
);
[C++]

Parameters

attributeName [in, optional, defaultvalue()]

  attributeName is a parameter of type BSTR

pVal [out, retval]

  pVal is a parameter of type INgProperties

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Schematics Extension.

Description

If the attributeName parameter is not specified, the AssociatedProperties list only contains the properties that are in relation with an attribute for this element type level. That is, if a property is defined for the element type level but if no attribute is in relation with this property, the property will be not included in the AssociatedProperties list. Moreover, if this element type inherits from another element type and if no properties is redefined at its own level, the returned AssociatedProperties list is empty.

[Visual Basic 6.0]

Here are samples use of the AssociatedProperties property:

Getting all the properties related to an attribute for the element type:

Dim pElementType As INgElementType
Dim pProperties As INgProperties
...
Set pProperties = pElementType.AssociatedProperties

Getting the properties that are associated with a specific attribute named StationSize:

Dim pElementType As INgElementType
Dim pProperties As INgProperties
...
Set pProperties = pElementType.AssociatedProperties("StationSize")

See Also

INgElementType Interface | INgElementType.AssociatedUserDatas Property | INgElementType.Properties Property

 


Feedback Send feedback on this page