PropertyContainer.TryGetProperty

Declaration

public static bool TryGetProperty(TContainer container, ref Unity.Properties.PropertyPath path, out Unity.Properties.IProperty property);

Parameters

container The container tree to search.
path The property path to resolve.
property When this method returns, contains the property associated with the specified path, if the property is found; otherwise, null.

Returns

bool true if the property was found at the specified path; otherwise, false.

Description

Gets an IProperty on the specified container for the given PropertyPath.

While the container data is not actually read from or written to. The container itself is needed to resolve polymorphic fields and list elements.


Declaration

public static bool TryGetProperty(ref TContainer container, ref Unity.Properties.PropertyPath path, out Unity.Properties.IProperty property, out Unity.Properties.VisitReturnCode returnCode);

Parameters

container The container tree to search.
path The property path to resolve.
property When this method returns, contains the property associated with the specified path, if the property is found; otherwise, null.
returnCode When this method returns, contains the return code.

Returns

bool true if the property was found at the specified path; otherwise, false.

Description

Gets an IProperty on the specified container for the given PropertyPath.

While the container data is not actually read from or written to. The container itself is needed to resolve polymorphic fields and list elements.


Did you find this page useful? Please give it a rating: