Appointment.Bind メソッド

定義

オーバーロード

Bind(ExchangeService, ItemId)

既存の予定にバインドし、その最初のクラス プロパティを読み込みます。 このメソッドを呼び出すと、Exchange Web Services (EWS) が呼び出されます。

Bind(ExchangeService, ItemId, PropertySet)

既存の予定にバインドし、指定したプロパティのセットを読み込みます。 このメソッドを呼び出すと、Exchange Web Services (EWS) が呼び出されます。

Bind(ExchangeService, ItemId)

既存の予定にバインドし、その最初のクラス プロパティを読み込みます。 このメソッドを呼び出すと、Exchange Web Services (EWS) が呼び出されます。

public:
 static Microsoft::Exchange::WebServices::Data::Appointment ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::ItemId ^ id);
public static Microsoft.Exchange.WebServices.Data.Appointment Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.ItemId id);
Public Shared Function Bind (service As ExchangeService, id As ItemId) As Appointment

パラメーター

service
ExchangeService

予定にバインドするために使用するサービス。

id
ItemId

バインドする予定の識別子。

戻り値

Appointment指定した ID に対応する予定を表すインスタンス。

例外

特定のシナリオでは、このメソッドは次のような例外を生成できます。System.ArgumentNullException: Value を null にすることはできません。パラメーター名: id At System.TimeZoneInfo.FindSystemTimeZoneById(String id)...これは、次のすべてが true の場合に発生する可能性があります。ExchangeServiceパラメーターで渡されたオブジェクトは、 パラメーターに servicerequestedServerVersionExchange2007_SP1値を指定して作成されました。MeetingTimeZoneTimeZoneName 属性。この例外が発生した場合は、トレース要求と応答を有効にすることで TimeZoneName 属性が存在しないことを確認できます。この問題を回避するには、次のいずれかの操作を行います。パラメーターに 値以上のExchange2010オブジェクトをrequestedServerVersion作成ExchangeServiceします。または StartTimeZone プロパティをPropertySet含まないオブジェクトをStartTimeZone指定します。

適用対象

Bind(ExchangeService, ItemId, PropertySet)

既存の予定にバインドし、指定したプロパティのセットを読み込みます。 このメソッドを呼び出すと、Exchange Web Services (EWS) が呼び出されます。

public:
 static Microsoft::Exchange::WebServices::Data::Appointment ^ Bind(Microsoft::Exchange::WebServices::Data::ExchangeService ^ service, Microsoft::Exchange::WebServices::Data::ItemId ^ id, Microsoft::Exchange::WebServices::Data::PropertySet ^ propertySet);
public static Microsoft.Exchange.WebServices.Data.Appointment Bind (Microsoft.Exchange.WebServices.Data.ExchangeService service, Microsoft.Exchange.WebServices.Data.ItemId id, Microsoft.Exchange.WebServices.Data.PropertySet propertySet);

パラメーター

service
ExchangeService

予定にバインドするために使用するサービス。

id
ItemId

バインドする予定の識別子。

propertySet
PropertySet

読み込むプロパティのセット。

戻り値

Appointment指定した ID に対応する予定を表すインスタンス。

例外

この例外の詳細については、「」を参照してください Bind(ExchangeService, ItemId)

適用対象