ContextItemManager.GetValue Yöntem

Tanım

Aşırı Yüklemeler

GetValue(Type)

Türetilmiş bir sınıfta geçersiz kılındığında, istenen öğe türünün bir örneğini döndürür. Verilen türe sahip bağlam öğesi yoksa boş bir öğe oluşturulur.

GetValue<TItemType>()

İstenen öğe türünün bir örneğini döndürür. Verilen türe sahip bağlam öğesi yoksa boş bir öğe oluşturulur.

GetValue(Type)

Türetilmiş bir sınıfta geçersiz kılındığında, istenen öğe türünün bir örneğini döndürür. Verilen türe sahip bağlam öğesi yoksa boş bir öğe oluşturulur.

public:
 abstract System::Activities::Presentation::ContextItem ^ GetValue(Type ^ itemType);
public abstract System.Activities.Presentation.ContextItem GetValue (Type itemType);
abstract member GetValue : Type -> System.Activities.Presentation.ContextItem
Public MustOverride Function GetValue (itemType As Type) As ContextItem

Parametreler

itemType
Type

Döndürülecek öğenin türü.

Döndürülenler

İstenen türde bir bağlam öğesi içeren öğesini döndürür ContextItem. Bu tür için bağlamda öğe yoksa, varsayılan bir öğe oluşturulur.

Özel durumlar

itemType, null değeridir.

Şunlara uygulanır

GetValue<TItemType>()

İstenen öğe türünün bir örneğini döndürür. Verilen türe sahip bağlam öğesi yoksa boş bir öğe oluşturulur.

public:
generic <typename TItemType>
 where TItemType : System::Activities::Presentation::ContextItem TItemType GetValue();
public TItemType GetValue<TItemType> () where TItemType : System.Activities.Presentation.ContextItem;
member this.GetValue : unit -> 'ItemType (requires 'ItemType :> System.Activities.Presentation.ContextItem)
Public Function GetValue(Of TItemType As ContextItem) () As TItemType

Tür Parametreleri

TItemType

Döndürülecek öğenin türü.

Döndürülenler

TItemType

İstenen türde bir bağlam öğesi içeren öğesini döndürür ContextItem. Bu tür için bağlamda öğe yoksa, varsayılan bir öğe oluşturulur.

Açıklamalar

Bu genel yöntem, alma türü işlevselliği sağlamak için bu yöntem için uygulanması gereken soyut GetValue yöntemi çağırır.

Şunlara uygulanır