Udostępnij za pośrednictwem


AddStateCodesRow Method (String, String, String, String, DateTime, String, DateTime)

Adds a RegionCodeDataSet..::.StateCodesRow DataRow to the StateCodesDataTable using the specified values.

Namespace:  Microsoft.CommerceServer.Orders
Assembly:  Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)

Syntax

'Declaration
Public Function AddStateCodesRow ( _
    Name As String, _
    Code As String, _
    CountryCode As String, _
    Description As String, _
    LastModified As DateTime, _
    ModifiedBy As String, _
    Created As DateTime _
) As RegionCodeDataSet..::.StateCodesRow
'Usage
Dim instance As RegionCodeDataSet..::.StateCodesDataTable
Dim Name As String
Dim Code As String
Dim CountryCode As String
Dim Description As String
Dim LastModified As DateTime
Dim ModifiedBy As String
Dim Created As DateTime
Dim returnValue As RegionCodeDataSet..::.StateCodesRow

returnValue = instance.AddStateCodesRow(Name, _
    Code, CountryCode, Description, LastModified, _
    ModifiedBy, Created)
public RegionCodeDataSet..::.StateCodesRow AddStateCodesRow(
    string Name,
    string Code,
    string CountryCode,
    string Description,
    DateTime LastModified,
    string ModifiedBy,
    DateTime Created
)
public:
RegionCodeDataSet..::.StateCodesRow^ AddStateCodesRow(
    String^ Name, 
    String^ Code, 
    String^ CountryCode, 
    String^ Description, 
    DateTime LastModified, 
    String^ ModifiedBy, 
    DateTime Created
)
public function AddStateCodesRow(
    Name : String, 
    Code : String, 
    CountryCode : String, 
    Description : String, 
    LastModified : DateTime, 
    ModifiedBy : String, 
    Created : DateTime
) : RegionCodeDataSet..::.StateCodesRow

Parameters

  • CountryCode
    Type: System..::.String
    Code for the country/region used by the Orders system

Return Value

Type: Microsoft.CommerceServer.Orders..::.RegionCodeDataSet..::.StateCodesRow
A new RegionCodeDataSet..::.StateCodesRow row.

Remarks

Adds a new RegionCodeDataSet..::.StateCodesRow to the RegionCodeDataSet..::.StateCodesDataTable. The RegionCodeDataSet object must be saved before these changes will be persisted to the database.

Permissions

See Also

Reference

RegionCodeDataSet..::.StateCodesDataTable Class

RegionCodeDataSet..::.StateCodesDataTable Members

AddStateCodesRow Overload

Microsoft.CommerceServer.Orders Namespace