AGI AgAttrAutomation 6 Send comments on this topic.
AddDependencyDispatchProperty Method (IAgAttrBuilder)
See Also 
DispScope
The attribute container (scope) where the attribute will be added.
ParentAttributeName
Changing the 'ParentAttributeName' attribute must trigger the update of the 'ChildAttributeName' attribute.
ChildAttributeName
The 'ChildAttributeName' attribute is automatically updated when the 'ParentAttributeName' is modified.
Windows








Description

Add a Dependency between two Attributes within the Attribute Scope provided. Dependencies are used to force the update of the child attribute when the parent attribute is modified by the user.

Syntax

[Visual Basic .NET]
Public Sub AddDependencyDispatchProperty( _
   ByVal DispScope As Object, _
   ByVal ParentAttributeName As String, _
   ByVal ChildAttributeName As String _
) 

[C#]
public void AddDependencyDispatchProperty(
Object DispScope,
string ParentAttributeName,
string ChildAttributeName
);

[Managed C++]
public: void AddDependencyDispatchProperty(
IUnknown ^ DispScope,
String __gc ^ ParentAttributeName,
String __gc ^ ChildAttributeName
);

[Unmanaged C++]
public: HRESULT AddDependencyDispatchProperty(
IUnknown * DispScope,
BSTR ParentAttributeName,
BSTR ChildAttributeName
);

[VBScript]
'Sub object.AddDependencyDispatchProperty(...)
' DispScope is type Object (an object)
' ParentAttributeName is type String
' ChildAttributeName is type String
Call object.AddDependencyDispatchProperty(DispScope, ParentAttributeName, ChildAttributeName)

[Perl]
$objectReference->AddDependencyDispatchProperty(
$DispScope, # type Object (object reference)
$ParentAttributeName, # type string (scalar)
$ChildAttributeName# type string (scalar)
);

Parameters

DispScope
The attribute container (scope) where the attribute will be added.
ParentAttributeName
Changing the 'ParentAttributeName' attribute must trigger the update of the 'ChildAttributeName' attribute.
ChildAttributeName
The 'ChildAttributeName' attribute is automatically updated when the 'ParentAttributeName' is modified.

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

ODTK 6.5