Megosztás a következőn keresztül:


EndpointMetadataCollection.GetMetadata<T> Method

Definition

Gets the most significant metadata item of type T.

public:
generic <typename T>
 where T : class T GetMetadata();
public T GetMetadata<T> () where T : class;
public T? GetMetadata<T> () where T : class;
member this.GetMetadata : unit -> 'T (requires 'T : null)
Public Function GetMetadata(Of T As Class) () As T

Type Parameters

T

The type of metadata to retrieve.

Returns

T

The most significant metadata of type T or null.

Applies to