Share via


ContextItemManager.GetValue<TItemType> (Método)

Devuelve una instancia del tipo de elemento solicitado.

Espacio de nombres:  Microsoft.Windows.Design
Ensamblado:  Microsoft.Windows.Design.Extensibility (en Microsoft.Windows.Design.Extensibility.dll)

Sintaxis

'Declaración
Public Function GetValue(Of TItemType As ContextItem) As TItemType
public TItemType GetValue<TItemType>()
where TItemType : ContextItem
public:
generic<typename TItemType>
where TItemType : ContextItem
TItemType GetValue()
member GetValue : unit -> 'TItemType  when 'TItemType : ContextItem
JScript no admite el uso de métodos ni tipos genéricos.

Parámetros de tipo

  • TItemType

Valor devuelto

Tipo: TItemType
Elemento de contexto del tipo solicitado.Si no hay ningún elemento en el contexto de este tipo, se creará uno predeterminado.

Seguridad de .NET Framework

Vea también

Referencia

ContextItemManager Clase

GetValue (Sobrecarga)

Microsoft.Windows.Design (Espacio de nombres)

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Otros recursos

Arquitectura de contexto de edición

Introducción a la extensibilidad de WPF Designer