Region |
Creates or updates a map image for a specific region.
Namespace: Gamanet.C4.SDK
Assembly: Gamanet.C4.SimpleClient (in Gamanet.C4.SimpleClient.dll) Version: 2026.0.0.733
Syntax
C#
public void CreateOrUpdateMapImage( Guid regionId, Stream documentStream )
Parameters
Implements
ISimpleClientRegionRepositoryV4.CreateOrUpdateMapImage(Guid, Stream)Example
The following example illustrates how to create a map image for region
C#
using System; using Gamanet.C4.SDK; using Gamanet.C4.SimpleInterfaces; public class Example { static void Main() { // Create instance of simple client var client = new SimpleClient(ConnectorConfiguration.HttpClient); ConnectionInfoV1 token; // Connect to local server var connectionResult = client.Connect(new Uri("https://localhost/"), "Support", "support", out token); if (connectionResult != ConnectionResult.Successful) { Console.WriteLine("Connection unsuccessful, result: {0}", connectionResult); return; } Console.WriteLine("Connection result: {0}", connectionResult); Console.WriteLine(); // Create the Example Region var exampleRegion = new SimpleRegionV1( Guid.NewGuid(), "ExampleRegion", EntityRoot.Region, RegionCategory.Region ); // Create region in db client.Regions.Create(exampleRegion); // Create map image for Example Region client.Regions.CreateOrUpdateMapImage(exampleRegion.Id, mapImage); // Disconnect from server client.Disconnect(); } }
See Also