API Reference > ecschema-editing > 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 ecschema-editing/src/Validation/Diagnostic.ts Line 183 Last Updated: 12 June, 2024