プロパティの概要

Outlook のプロパティ

プロパティは、Outlook オブジェクトの属性です。 Properties describe something about the object, such as the sender of a message item, or the number of items in a folder. Outlook defines many properties; these are referred to as built-in properties in this documentation. The Outlook object model exposes many built-in properties with string names, such as the Subject property of a mail item.

These properties are further qualified as explicit built-in properties. Customers and service providers can extend the predefined properties of Outlook by creating new, custom properties. For example, through custom forms, customers can define properties to extend the functionality for a specific message class, and service providers can define properties to expose the unique features of their messaging system.

オブジェクト モデルのエントリ ポイント

Outlook オブジェクト モデルには、Outlook プロパティにアクセスするいくつかの方法が用意されています。

注:

[!メモ] ItemPropertiesUserProperties は、明示的な組み込みプロパティの列挙をサポートし、 UserProperties.Find は、明示的な組み込みプロパティの検索をサポートしますが、これらのオブジェクトは基本的にアイテム オブジェクトのカスタム プロパティに対して使用します。 アイテム以外のオブジェクトのプロパティ、または Outlook オブジェクト モデルで明示的に公開されていないアイテム レベルのプロパティにアクセスするには、 PropertyAccessor オブジェクトを使います。

次の表は、どのエントリ ポイントを使用するかを示しています。

Object.Property UserProperty、UserProperties ItemProperty、ItemProperties PropertyAccessor
プロパティに対するアクション アイテム オブジェクトの明示的な組み込みプロパティの取得と設定を行います。 アイテム オブジェクトのカスタム プロパティの列挙、作成、取得、設定、削除を行います。 アイテム オブジェクトの明示的な組み込みプロパティとカスタム プロパティの列挙を行います。また、アイテム オブジェクトのカスタム プロパティの作成、取得、設定、削除を行います。 組み込みプロパティの取得と設定を行い、カスタム プロパティの作成、取得、設定、削除を行います。 オブジェクトにはアイテム オブジェクトや AddressEntryAddressListAttachmentExchangeUserExchangeDistributionListFolderRecipientStore があります。 適切な名前空間によりプロパティにアクセスします。 詳細については、「名前空間でプロパティを参照する」を参照してください。
パフォーマンス パフォーマンスのオーバーヘッドはありません。 UserProperties を使用してプロパティの列挙やアクセスを行うとパフォーマンスのオーバーヘッドが発生します。 ItemProperties を使用してプロパティの列挙やアクセスを行うとパフォーマンスのオーバーヘッドが発生します。 PropertyAccessor を使用してプロパティにアクセスすると、パフォーマンスへのオーバーヘッドが発生します。 複数のプロパティの取得または設定を行うには、GetPropertySetProperty を繰り返し呼び出すのではなく、GetPropertiesSetProperties を使用します。

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。