ServiceObject.TryGetProperty Метод

Определение

Перегрузки

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.

Применяется к