Partager via


IAnnotationDictionary.GetValue Method

Definition

Overloads

GetValue<T>()

Gets the object that has the specified reference type.

GetValue<T>(Object)

Gets the object that has the specified reference type and is associated with the specified key.

GetValue<T>()

Gets the object that has the specified reference type.

public:
generic <typename T>
 where T : class T GetValue();
public T GetValue<T> () where T : class;
abstract member GetValue : unit -> 'T (requires 'T : null)
Public Function GetValue(Of T As Class) () As T

Type Parameters

T

The type of the object to get. This is the key that is associated with the object. The type must be a reference type.

Returns

T

The object associated with the specified key, if the key is found; otherwise, null.

Applies to

GetValue<T>(Object)

Gets the object that has the specified reference type and is associated with the specified key.

public:
generic <typename T>
 where T : class T GetValue(System::Object ^ key);
public T GetValue<T> (object key) where T : class;
abstract member GetValue : obj -> 'T (requires 'T : null)
Public Function GetValue(Of T As Class) (key As Object) As T

Type Parameters

T

The type of the object to get. The type must be a reference type.

Parameters

key
Object

The key of the object to get.

Returns

T

The object associated with the specified key, if the key is found and the object has the type T; otherwise, null.

Applies to