ServiceObject.TryGetProperty<T> method (PropertyDefinitionBase, T)

Tries to get the value of a specified property.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

public bool TryGetProperty<T>(
	PropertyDefinitionBase propertyDefinition,
	out T propertyValue
)

Type parameters

T

The type of expected property value.

Parameters

propertyDefinition
Type: Microsoft.Exchange.WebServices.Data.PropertyDefinitionBase

The property definition.

propertyValue
Type: T

The property value.

Return value

Type: System.Boolean
true if the property was retrieved; otherwise, false.
Show: