## EntityFieldAttribute class

エンティティ プロパティの属性を表します。

```csharp
[AttributeUsage(AttributeTargets.Property)]
public class EntityFieldAttribute : Attribute
```

## コンストラクター

| 名前 | 説明 |
| --- | --- |
| [EntityFieldAttribute](entityfieldattribute/)() | デフォルトのコンストラクター。 |

### 備考

に使用される属性[`Task`](../../aspose.tasks/task/)、[`Resource`](../../aspose.tasks/resource/)、[`Project`](../../aspose.tasks/project/) と[`ResourceAssignment`](../../aspose.tasks/resourceassignment/)エンティティのプロパティのみであり、その列挙を簡素化します.

### 例

を使用してプロパティを列挙する方法 **エンティティ フィールド**属性:

```csharp
[C#]
var project = new Project("sample.mpp");
foreach (var task in project.SelectAllChildTasks())
{
    Console.WriteLine("Task:");
    foreach (var propInfo in typeof(Task).GetProperties().Where(propInfo => propInfo.GetCustomAttribute{Attributes.EntityFieldAttribute}() != null))
    {
        Console.WriteLine(string.Format("{0}: {1}", propInfo.Name, propInfo.GetValue(task)));
    }
}
```

### 関連項目

* 名前空間 [Aspose.Tasks.Attributes](../../aspose.tasks.attributes/)
* 組み立て [Aspose.Tasks](../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Tasks.dll -->
