SimpleRegionV1 Constructor

Initializes a new instance of the SimpleRegionV1 class.

Namespace: Gamanet.C4.SimpleInterfaces
Assembly: Gamanet.C4.SimpleInterfaces (in Gamanet.C4.SimpleInterfaces.dll) Version: 2026.0.0.242
Syntax
C#
public SimpleRegionV1(
	Guid id,
	string name,
	Guid parentId,
	Guid categoryId
)

Parameters

id  Guid
The identifier.
name  String
parentId  Guid
The parent identifier.
categoryId  Guid
The category identifier.
Remarks

Supported from

  • 2020
  • Example
    The following example illustrates how to create SimpleRegion object
    C#
    using Gamanet.C4.SDK.Enums.Core;
    using Gamanet.C4.SimpleInterfaces;
    using Gamanet.C4.SDK.Enums.Regions;
    using System;
    
    public class CreateSimpleRegionObject
    {
        static void Main()
        {
            // create instance of simple region
            var region = new SimpleRegion(
                Guid.NewGuid(), // new Id
                "Office", // region name
                EntityRoot.Region, // Id of the parent, actually it is region root
                RegionCategory.Region); // region category Id
    
            // all the remaining data is stored in the Data property
            region.Data["Description"] = "This is Office region";
        }
    }
    See Also

    Reference

    SimpleRegionV1 Class
    Gamanet.C4.SimpleInterfaces Namespace
    EntityRoot