Edit

Share via


ServiceObject.TryGetProperty Method

Definition

Overloads

TryGetProperty(PropertyDefinitionBase, Object)

Tries to get the value of a specified property.

TryGetProperty<T>(PropertyDefinitionBase, T)

Tries to get the value of a specified property.

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

The property definition.

propertyValue
Object

The property value.

Returns

true if the property was retrieved; otherwise, false.

Applies to

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

The property definition.

propertyValue
T

The property value.

Returns

true if the property was retrieved; otherwise, false.

Applies to