RegionRepositoryV4.GetAllPhotoInfo Method

Retrieves metadata information for all persons that have a photo.

Namespace: Gamanet.C4.SDK
Assembly: Gamanet.C4.SimpleClient (in Gamanet.C4.SimpleClient.dll) Version: 2026.0.0.733
Syntax
C#
public ISimpleCollection<MetadataV1> GetAllPhotoInfo()

Return Value

ISimpleCollection<MetadataV1>
A collection of photo metadata.

Implements

ISimpleClientRegionRepositoryV4.GetAllPhotoInfo()
Example
This example demonstrates how to retrieve photo information for regions with photos.
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
        );
        var exampleRegion2 = new SimpleRegionV1(
            Guid.NewGuid(),
            "ExampleRegion2",
            EntityRoot.Region,
            RegionCategory.Region
        );
        // Create region in db
        client.Regions.Create(exampleRegion);
        client.Regions.Create(exampleRegion2);

        // add photo to one region
        client.Regions.CreatePhoto(exampleRegion.Id, photo);

        // Get all photo info
        var result = client.Regions.GetAllPhotoInfo();

        // Disconnect from server
        client.Disconnect();
    }
}
This example demonstrates how to retrieve all graphic objects.
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();

        //var result = client.Regions.GetAllGraphicsObjects(moduleId);

        // Disconnect from server
        client.Disconnect();
    }
}
See Also

Reference

RegionRepositoryV4 Class
Gamanet.C4.SDK Namespace