PrintMgmtHierarchy.getParent Method [AX 2012]

Retrieves the parent node instance based on the information provided.

public PrintMgmtNodeInstance getParent(PrintMgmtNodeInstance _nodeInstance, PrintMgmtDocumentType _docType)

Run On

Called

Parameters

_nodeInstance
Type: PrintMgmtNodeInstance Class
An instance of the PrintMgmtNodeInstance class for which the parent is being requested.
_docType
Type: PrintMgmtDocumentType Enumeration
The PrintMgmtDocumentType enumeration value that is used to determine the appropriate parent.

Return Value

Type: PrintMgmtNodeInstance Class
An instance of the parent PrintMgmtNodeInstance class; otherwise, a nullNothingnullptrunita null reference (Nothing in Visual Basic) result.

ExceptionCondition
Error

The _docType parameter is invalid for the _nodeInstance parameter.

The parent can vary on the table that is referenced by the _nodeInstance parameter and the _docType parameter to request.

Community Additions

ADD
Show: