Show / Hide Table of Contents

Method FetchClassificationSchemaAsync

FetchClassificationSchemaAsync(CancellationToken)

Fetches the ClassificationSchema when HasClassificationSchema is true.

Declaration
public Task<ClassificationSchema> FetchClassificationSchemaAsync(CancellationToken cancellationToken = default)
Parameters
Type Name Description
CancellationToken cancellationToken

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

Returns
Type Description
Task<ClassificationSchema>

The ClassificationSchema if enabled by the organization administrator.

Remarks

Returns the ClassificationSchema if the organization administrator has enabled it. The schema supplies classification metadata needed to correctly display item classification markings and banners (including colors and text) derived from the organization's primary classification attribute. If the portal is not already loaded, it will be loaded automatically.

caution

This method will throw an InvalidOperationException if HasClassificationSchema is false.

Exceptions
Type Condition
InvalidOperationException

Thrown if the portal does not have a classification schema enabled.

See Also
HasClassificationSchema

Applies to

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