Click or drag to resize

PartServicesDeleteVendor Method

Deletes a vendor definition from the system. If the vendor specified has relationships to other data items (such as part definitions), it may not be deleted. If a vendor with the specified name already exists, a AlreadyExistsException will be thrown.

Namespace:  FactoryLogix.xTend.PartDefinition
Assembly:  FactoryLogix.xTend.API (in FactoryLogix.xTend.API.dll) Version: 8.242.0.0 (8.242.0.0)
Syntax
public void DeleteVendor(
	Guid sessionId,
	string vendorName
)

Parameters

sessionId
Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method.
vendorName
Type: SystemString
The name of the vendor to be deleted.
Exceptions
ExceptionCondition
InvalidSessionExceptionThrown if the sessionId parameter is invalid.
VendorDoesNotExistsExceptionThrown if the specified vendor does not exist in the system.
RelatedItemExceptionThrown if the specified vendor cannot be deleted because there are relationships exist to other data items (such as parts, for example).
CannotDeleteExceptionThrown when the vendor cannot be deleted.
See Also