ServiceObject.TryGetProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| TryGetProperty(PropertyDefinitionBase, Object) |
指定したプロパティの値の取得を試みます。 |
| TryGetProperty<T>(PropertyDefinitionBase, T) |
指定したプロパティの値の取得を試みます。 |
TryGetProperty(PropertyDefinitionBase, Object)
指定したプロパティの値の取得を試みます。
public:
bool TryGetProperty(Microsoft::Exchange::WebServices::Data::PropertyDefinitionBase ^ propertyDefinition, [Runtime::InteropServices::Out] System::Object ^ % propertyValue);
public bool TryGetProperty(Microsoft.Exchange.WebServices.Data.PropertyDefinitionBase propertyDefinition, out object propertyValue);
Public Function TryGetProperty (propertyDefinition As PropertyDefinitionBase, ByRef propertyValue As Object) As Boolean
パラメーター
- propertyDefinition
- PropertyDefinitionBase
プロパティ定義。
- propertyValue
- Object
プロパティ値。
戻り値
プロパティが取得された場合は true。それ以外の場合は false。
適用対象
TryGetProperty<T>(PropertyDefinitionBase, T)
指定したプロパティの値の取得を試みます。
public:
generic <typename T>
bool TryGetProperty(Microsoft::Exchange::WebServices::Data::PropertyDefinitionBase ^ propertyDefinition, [Runtime::InteropServices::Out] T % propertyValue);
public bool TryGetProperty<T>(Microsoft.Exchange.WebServices.Data.PropertyDefinitionBase propertyDefinition, out T propertyValue);
Public Function TryGetProperty(Of T) (propertyDefinition As PropertyDefinitionBase, ByRef propertyValue As T) As Boolean
型パラメーター
- T
予想されるプロパティ値の型。
パラメーター
- propertyDefinition
- PropertyDefinitionBase
プロパティ定義。
- propertyValue
- T
プロパティ値。
戻り値
プロパティが取得された場合は true。それ以外の場合は false。