Show / Hide Table of Contents

Method QuerySharedTemplatesAsync

QuerySharedTemplatesAsync(SharedTemplateQueryParameters?, CancellationToken)

Queries the database for shared templates.

Declaration
Task<IReadOnlyDictionary<long, IReadOnlyList<SharedTemplate>>> QuerySharedTemplatesAsync(SharedTemplateQueryParameters? queryParameters = null, CancellationToken cancellationToken = default)
Parameters
Type Name Description
SharedTemplateQueryParameters queryParameters

The parameters used to query.

CancellationToken cancellationToken

A cancellation token that can be used to cancel the operation.

Returns
Type Description
Task<IReadOnlyDictionary<long, IReadOnlyList<SharedTemplate>>>

A dictionary where the keys are ServiceLayerId and the values consist of a collection of SharedTemplate objects.

Remarks

Returns a SharedTemplate collection that matches the SharedTemplateQueryParameters for every ServiceLayerId.

Query parameters are optional. When no query parameters are provided and Database is supported, all visible SharedTemplate for each table in the database are returned. Otherwise, a collection of SharedTemplate with FeatureTemplateDefinition based on the FeatureTemplate is returned.

Applies to

Platforms and versions
TargetVersions
.NET300
.NET Windows300
.NET Android300
.NET iOS300
In this article
Provide feedback
Back to top Copyright © 2025 Esri.