Método ContextItemManager.GetValue<TItemType>

Retorna uma instância do tipo item solicitado.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (em Microsoft.Windows.Design.Extensibility.dll)

Sintaxe

'Declaração
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
O JScript não oferece suporte a tipos ou métodos genéricos.

Parâmetros de tipo

  • TItemType

Valor de retorno

Tipo: TItemType
Um item de contexto do tipo solicitado.Se não houver nenhum item no contexto desse tipo, um padrão um será criado.

Segurança do .NET Framework

Consulte também

Referência

ContextItemManager Classe

Sobrecargas GetValue

Namespace Microsoft.Windows.Design

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Outros recursos

Editar contexto arquitetura

Noções básicas sobre extensibilidade Designer WPF