OrderForm Constructor (String)
Initializes a new instance of the OrderForm class with the specified name.
Namespace: Microsoft.CommerceServer.Runtime.Orders
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Sub New ( _
name As String _
)
'Usage
Dim name As String
Dim instance As New OrderForm(name)
public OrderForm(
string name
)
public:
OrderForm(
String^ name
)
public function OrderForm(
name : String
)
Parameters
- name
Type: System..::.String
The name to use for the new OrderForm.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The length of name is greater than the maximum length specified in the orders storage mapping file. |
Remarks
During construction, a OrderFormId GUID is generated. Created and LastModified will be set to the local time on the local server. For backwards compatibility, Index will precreate _Basket_Errors : SimpleList, _Purchase_Errors : SimpleList, and _Verify_With : Dictionary.
name is trimmed of leading and trailing white space characters before being set.
The default maximum length for name is 64 characters, as defined in the corresponding table column constraint specified in the default orders storage mapping file, OrderObjectMappings.xml.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.