ServiceObject.TryGetProperty ServiceObject.TryGetProperty ServiceObject.TryGetProperty Method

Definition

Overloads

TryGetProperty(PropertyDefinitionBase, Object) TryGetProperty(PropertyDefinitionBase, Object) TryGetProperty(PropertyDefinitionBase, Object)

Tries to get the value of a specified property.

TryGetProperty<T>(PropertyDefinitionBase, T) TryGetProperty<T>(PropertyDefinitionBase, T) TryGetProperty<T>(PropertyDefinitionBase, T)

Tries to get the value of a specified property.

TryGetProperty(PropertyDefinitionBase, Object) TryGetProperty(PropertyDefinitionBase, Object) TryGetProperty(PropertyDefinitionBase, Object)

Tries to get the value of a specified property.

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

Parameters

propertyDefinition
PropertyDefinitionBase PropertyDefinitionBase PropertyDefinitionBase

The property definition.

propertyValue

The property value.

Returns

true if the property was retrieved; otherwise, false.

TryGetProperty<T>(PropertyDefinitionBase, T) TryGetProperty<T>(PropertyDefinitionBase, T) TryGetProperty<T>(PropertyDefinitionBase, T)

Tries to get the value of a specified property.

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

Type Parameters

T

The type of expected property value.

Parameters

propertyDefinition
PropertyDefinitionBase PropertyDefinitionBase PropertyDefinitionBase

The property definition.

propertyValue

The property value.

Returns

true if the property was retrieved; otherwise, false.

Applies to