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
- Name
Type: System..::.String
The name of the statecode.
- Code
Type: System..::.String
Code for the state used by the Orders system
- CountryCode
Type: System..::.String
Code for the country/region used by the Orders system
- Description
Type: System..::.String
The description
- LastModified
Type: System..::.DateTime
The DateTime the row was last modified.
- ModifiedBy
Type: System..::.String
The identity that last modified the row.
- Created
Type: System..::.DateTime
The local time when the row was created.
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
- 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.
See Also
Reference
RegionCodeDataSet..::.StateCodesDataTable Class