EndpointMetadataCollection.GetRequiredMetadata<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the most significant metadata item of type T
.
Throws an InvalidOperationException if the metadata is not found.
public T GetRequiredMetadata<T> () where T : class;
member this.GetRequiredMetadata : unit -> 'T (requires 'T : null)
Public Function GetRequiredMetadata(Of T As Class) () As T
Type Parameters
- T
The type of metadata to retrieve.
Returns
T
The most significant metadata of type T
.
Applies to
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: