IsRoute method

The IsRoute method indicates whether the specified path is the valid path through the runtime hierarchy for an object.

Syntax

C#
bool IsRoute(string lpszRoute)

Arguments

lpszRoute
The path through the runtime hierarchy. (See the C# example.)

Returns

Returns true if the specified path matches the path for this object; returns false if the specified path does not match the path for this object.

C# example

The following example gets an interface to the Vendor field and then uses GetRoute to confirm the path.
m_oDCOField = m_oDCO.FindChild("TM000001").FindChild("Vendor");
bool bRouteOK = m_oDCOField.IsRoute("B/D(20100028.002.01)/P(TM000001)/F(Vendor)");