Class GovernanceMetadataBudgetValidationResult
Represents the result of optional governance metadata budget validation.
public sealed class GovernanceMetadataBudgetValidationResult
- Inheritance
-
GovernanceMetadataBudgetValidationResult
- Inherited Members
Properties
EstimatedSerializedBytes
Gets the estimated UTF-8 serialized metadata size used for budget comparison.
public int EstimatedSerializedBytes { get; }
Property Value
IsValid
Gets a value indicating whether the metadata satisfied the supplied budget.
public bool IsValid { get; }
Property Value
NormalizedMetadata
Gets normalized metadata after trimming keys and values and dropping blank keys.
public IReadOnlyDictionary<string, string> NormalizedMetadata { get; }
Property Value
Violations
public IReadOnlyList<string> Violations { get; }
Property Value
Methods
Create(IReadOnlyDictionary<string, string>, IReadOnlyList<string>, int)
Creates a validation result.
public static GovernanceMetadataBudgetValidationResult Create(IReadOnlyDictionary<string, string> normalizedMetadata, IReadOnlyList<string> violations, int estimatedSerializedBytes)
Parameters
normalizedMetadataIReadOnlyDictionary<string, string>violationsIReadOnlyList<string>estimatedSerializedBytesint
Returns
ThrowIfInvalid(string?)
Throws an ArgumentException when validation failed.
public void ThrowIfInvalid(string? parameterName = null)
Parameters
parameterNamestring