Testing.StateProvince.CreateStateProvince C# (CSharp) Method

CreateStateProvince() public static method

Create a new StateProvince object.
public static CreateStateProvince ( global stateProvinceID, global stateProvinceCode, global countryRegionCode, global isOnlyStateProvinceFlag, global name, global territoryID, global rowguid, global modifiedDate ) : StateProvince
stateProvinceID global Initial value of the StateProvinceID property.
stateProvinceCode global Initial value of the StateProvinceCode property.
countryRegionCode global Initial value of the CountryRegionCode property.
isOnlyStateProvinceFlag global Initial value of the IsOnlyStateProvinceFlag property.
name global Initial value of the Name property.
territoryID global Initial value of the TerritoryID property.
rowguid global Initial value of the rowguid property.
modifiedDate global Initial value of the ModifiedDate property.
return StateProvince
        public static StateProvince CreateStateProvince(global::System.Int32 stateProvinceID, global::System.String stateProvinceCode, global::System.String countryRegionCode, global::System.Boolean isOnlyStateProvinceFlag, global::System.String name, global::System.Int32 territoryID, global::System.Guid rowguid, global::System.DateTime modifiedDate)
        {
            StateProvince stateProvince = new StateProvince();
            stateProvince.StateProvinceID = stateProvinceID;
            stateProvince.StateProvinceCode = stateProvinceCode;
            stateProvince.CountryRegionCode = countryRegionCode;
            stateProvince.IsOnlyStateProvinceFlag = isOnlyStateProvinceFlag;
            stateProvince.Name = name;
            stateProvince.TerritoryID = territoryID;
            stateProvince.rowguid = rowguid;
            stateProvince.ModifiedDate = modifiedDate;
            return stateProvince;
        }