次の方法で共有


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

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

戻り値

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

例外

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

適用対象

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

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

戻り値

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

例外

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

適用対象