Share via


ExtensionPartRecord<T> Class

Definition

An extension part record combining metadata and an async method to get the part.

public class ExtensionPartRecord<T> where T : class
type ExtensionPartRecord<'T (requires 'T : null)> = class
Public Class ExtensionPartRecord(Of T)

Type Parameters

T
Inheritance
ExtensionPartRecord<T>

Constructors

ExtensionPartRecord<T>(IEnumerable<ExtensionPartMetadata>, AsyncLazy<T>, ExtensionIdentificationToken, String, ServiceMoniker)

Creates an instance of ExtensionPartRecord<T>.

Properties

Extension

Gets the extension identifier for the part if there is one available.

Metadata

Gets the metadata for the extension part.

ServiceMoniker

Gets the service moniker that should be used to retrieve this part.

UniqueIdentifier

Gets the unique part identifier. This can be used as a persistent opaque value across sessions.

Methods

GetPartAsync()

Gets the part instance.

TryGetMetadata<TMetadata>(String, TMetadata)

Tries to get the given metadata name as T.

Applies to