Ets_Nt_Subnet_Slice_Nth_Remove()
Note: Requires OPNET Development Kit
Abstract
Uninstalls a slice from a subnet.
Syntax
Ets_Nt_Subnet_Slice_Nth_Remove (subnet_hndl, index)
| Argument | Type | Description |
|---|---|---|
subnet_hndl |
EtsT_Obj_Handle |
Handle of the subnet of interest. |
index |
int |
Index of the slice to be removed. |
Return Type
EtsT_Slice_Handle
Handle of the specified slice. Returns NIL if the object handle passed is not a subnet object handle, or if the index is less than zero or greater than the index of the last slice.
Header
ets_api_nt.h
Details
Ownership of the slice is transferred from the subnet. Use Ets_Slice_Destroy() to properly deallocate the slice. Note that some types of slices, such as the network objects slice, cannot be removed. See Slice Sub-Package for details on which slices can be removed.