ComponentPlacement.ComponentPlacement Constructor
Definition
- Assembly
- Sandcastle.Core.dll
ComponentPlacement()
ComponentPlacement(PlacementAction, string)
Constructor. Indicate the placement action and an optional component ID related to it if needed.
public ComponentPlacement(PlacementAction placement, string id)
Parameters
placementPlacementActionThe placement action to use
idstringA build component ID for use with the
Before,After, orReplacePlacement action.
Exceptions
- ArgumentException
This is thrown if
Before,After, orReplaceis specified without an ID or if one is specified withNone,Start, orEnd.
ComponentPlacement(PlacementAction, string, int)
Constructor. Indicate the placement action, component ID, and instance to act on.
public ComponentPlacement(PlacementAction placement, string id, int instance)
Parameters
placementPlacementActionThe placement action to use
idstringA build component ID for use with the
Before,After, orReplacePlacement action.instanceintThe instance to use with the placement option
Exceptions
- ArgumentException
This is thrown if
Before,After, orReplaceis specified without an ID or if instance is less than one.