API Reference > ecschema-metadata > Diagnostic > PropertyDiagnostic > constructor constructor Method Initializes a new PropertyDiagnostic. PropertyDiagnostic<ARGS extends any[]>(property: AnyProperty, messageArgs?: ARGS, category: DiagnosticCategory = DiagnosticCategory.Error): PropertyDiagnostic<ARGS> Parameter Type Description property AnyProperty The property to associate with the diagnostic. messageArgs ARGS The arguments used when formatting the diagnostic message. category DiagnosticCategory The DiagnosticCategory to associate with the diagnostic, Error by default. Returns - PropertyDiagnostic<ARGS> Defined in core/ecschema-metadata/src/Validation/Diagnostic.ts Line 198 Last Updated: 11 June, 2024