CreatePriceInstance(String,String,String,String,PriceInstanceType,Int32,Decimal) Method
Part number to price
Domain of the part
Revision to price
Domain of the part
The type of price being created.
How many units in this price instance.
Price of the part
Creates a Price Instance. This overload takes a set of required parameters for the API.
Syntax
'Declaration
Public Overloads Function CreatePriceInstance( _
ByVal _partNumber_ As String, _
ByVal _partDomain_ As String, _
ByVal _partRevision_ As String, _
ByVal _priceProgram_ As String, _
ByVal _priceType_ As PriceInstanceType, _
ByVal _pricedQuantity_ As Integer, _
ByVal _price_ As Decimal _
) As ToolkitResult
public ToolkitResult CreatePriceInstance(
string _partNumber_,
string _partDomain_,
string _partRevision_,
string _priceProgram_,
PriceInstanceType _priceType_,
int _pricedQuantity_,
decimal _price_
)
Parameters
partNumber
Part number to price
partDomain
Domain of the part
partRevision
Revision to price
priceProgram
Domain of the part
priceType
The type of price being created.
pricedQuantity
How many units in this price instance.
price
Price of the part
Return Value
The following values are populated in the ToolkitResult object returned by the API method:
- Objid - The Objid of the PriceInstance.
Remarks
You many not have two prices (in the same schedule for the same part and quantity) overlap or have the price's StartDate or EndDate extend outside the span of the price program.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family
Reference
InterfacesToolkit Class
InterfacesToolkit Members
Overload List