2027 Method
Changes 0
M

ElementType.Duplicate

Description:
Duplicates an existing element type and assigns it a new name.
public ElementType Duplicate(
	string name
)
  • String
    name
    The new name of the element type.
Return Value ElementType The duplicated element type.
  • name is an empty string. -or- name cannot include prohibited characters, such as "{, }, [, ], |, ;, less-than sign, greater-than sign, ?, `, ~". -or- The element type name was empty, contained invalid characters, or was invalid for the specific element type. -or- The name is already in use for this element type.
  • A non-optional argument was null
  • Duplicate element type could not be obtained.
  • The ElementType cannot be copied.