PrintMgmtSetupContext.addHierarchyContext Method [AX 2012]

Adds an instance of the PrintMgmtHierarchyContext class to the setup context.

public void addHierarchyContext(
    PrintMgmtHierarchyType _hierarchyType, 
    PrintMgmtNodeType _startingNodeType, 
   [List _documentTypeFilterList])

Run On

Called

Parameters

_hierarchyType
Type: PrintMgmtHierarchyType Enumeration
The PrintMgmtHierarchyType enumeration value that is used to retrieve settings.
_startingNodeType
Type: PrintMgmtNodeType Enumeration
The PrintMgmtNodeType enumeration value to use as the starting point to display settings in the hierarchy.
_documentTypeFilterList
Type: List Class
A list of PrintMgmtDocumentType enumeration values that represent the document types to display; optional.

ExceptionCondition
Error

The _documentTypeFilterList parameter is nullNothingnullptrunita null reference (Nothing in Visual Basic).

-or-

The _hierarchyType parameter has already been added to this instance of the PrintMgmtSetupContext class.

For more information about how to set contextual information, see the PrintMgmtHierarchyContext class.

Community Additions

ADD
Show: