W1074 未知のカスタム属性 (Delphi)

提供: RAD Studio
移動先: 案内検索

このメッセージは、この属性に対して使用されているクラスが見つからなかったことを示します。

メモ: この警告が False に設定された場合、警告「この言語はサポートされていません」が生成されます。

type
  [ThisIsAFakeAttribute('Hello', 10)] // This generates 'the "Warning: W1074 Unknown custom attribute"
  TTestClass = class
  end;
 
{$WARN UNKNOWN_CUSTOM_ATTRIBUTE OFF}  // Here we disable the generation of W1074
 
  [ThisIsAFakeAttribute('Hello', 10)] // Now, this generates the "Warning: W1025 Unsupported language feature: 'custom attribute'"
  TTestClass2 = class
  end;

関連項目