Click or drag to resize
IDeviceDefinitionManagerCreateDeviceDefinition Method

[This is preliminary documentation and is subject to change.]

Creates a device definition

Namespace: Netadmin.Management.Inventory
Assembly: Netadmin.Management.Interfaces (in Netadmin.Management.Interfaces.dll) Version: release/9.0@131b654fe7332b0776120c2b44d96c6cac5ac9a2
Syntax
long CreateDeviceDefinition(
	IDeviceDefinition deviceDefinition,
	DeviceDefinitionDtoType deviceDefinitionType
)

Parameters

deviceDefinition
Type: Netadmin.Management.Inventory.DtoIDeviceDefinition
The device definition to create
deviceDefinitionType
Type: Netadmin.Management.Inventory.DtoDeviceDefinitionDtoType
The type of the device definition

Return Value

Type: Int64
The id of the created device definition
Exceptions
ExceptionCondition
NonUniqueValueExceptionName
ObjectNotFoundExceptionThe Vendor and Type must be present in the system.
InvalidIdentifierExceptionThrown if a required id is zero or less.
ValueIsRequiredExceptionThrown if a required value is not set.
See Also