PropertyCollection.GetProperty Метод

Определение

Перегрузки

GetProperty(Object)

Получает свойство, связанное с указанным ключом.

GetProperty<TProperty>(Object)

Получает свойство, связанное с указанным ключом.

GetProperty(Object)

Получает свойство, связанное с указанным ключом.

public:
 System::Object ^ GetProperty(System::Object ^ key);
public:
 Platform::Object ^ GetProperty(Platform::Object ^ key);
winrt::Windows::Foundation::IInspectable GetProperty(winrt::Windows::Foundation::IInspectable const & key);
public object GetProperty (object key);
member this.GetProperty : obj -> obj
Public Function GetProperty (key As Object) As Object

Параметры

key
Object

Ключ.

Возвращаемое значение

Object

Значение свойства или значение null, если свойство не задано.

Исключения

Параметр key имеет значение null.

key не существует в коллекции свойств.

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

GetProperty<TProperty>(Object)

Получает свойство, связанное с указанным ключом.

public:
generic <typename TProperty>
 TProperty GetProperty(System::Object ^ key);
public:
generic <typename TProperty>
 TProperty GetProperty(Platform::Object ^ key);
template <typename TProperty>
 TProperty GetProperty(winrt::Windows::Foundation::IInspectable const & key);
public TProperty GetProperty<TProperty> (object key);
member this.GetProperty : obj -> 'Property
Public Function GetProperty(Of TProperty) (key As Object) As TProperty

Параметры типа

TProperty

Тип свойства.

Параметры

key
Object

Ключ.

Возвращаемое значение

TProperty

Значение свойства или значение null, если свойство не задано.

Исключения

Параметр key имеет значение null.

key не существует в коллекции свойств.

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