PartServicesCreateVendor Method |
Creates a new vendor definition.
The newVendorName parameter must not be empty, and must specify a unique name for the new vendor.
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.245.0.0 (8.245.0.0)
Syntax public Vendor CreateVendor(
Guid sessionId,
string newVendorName
)
Public Function CreateVendor (
sessionId As Guid,
newVendorName As String
) As Vendor
public:
virtual Vendor^ CreateVendor(
Guid sessionId,
String^ newVendorName
) sealed
abstract CreateVendor :
sessionId : Guid *
newVendorName : string -> Vendor
override CreateVendor :
sessionId : Guid *
newVendorName : string -> Vendor
Parameters
- sessionId
- Type: SystemGuid
The session identifier that was returned by the Connect(String, String, String, String, String) method. - newVendorName
- Type: SystemString
The name of the new manufacturer to be created.
Return Value
Type:
VendorA
Vendor object representing the newly created vendor with a valid Id property.
Exceptions See Also