共用方式為


ExtensionPartRecord<T> 建構函式

定義

建立 ExtensionPartRecord<T> 的執行個體。

public ExtensionPartRecord (System.Collections.Generic.IEnumerable<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartMetadata> metadata, Microsoft.VisualStudio.Threading.AsyncLazy<T?> partFactory, Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken? owningExtension, string uniqueIdentifier);
new Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartRecord<'T (requires 'T : null)> : seq<Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartMetadata> * Microsoft.VisualStudio.Threading.AsyncLazy<'T (requires 'T : null)> * Microsoft.VisualStudio.RpcContracts.Extensibility.ExtensionIdentificationToken * string -> Microsoft.Internal.VisualStudio.Extensibility.Framework.ExtensionPartRecord<'T (requires 'T : null)>
Public Sub New (metadata As IEnumerable(Of ExtensionPartMetadata), partFactory As AsyncLazy(Of T), owningExtension As ExtensionIdentificationToken, uniqueIdentifier As String)

參數

metadata
IEnumerable<ExtensionPartMetadata>

擴充元件的元數據。

partFactory
AsyncLazy<T>

AsycLazy 可用來取得擴充元件實例。

owningExtension
ExtensionIdentificationToken

擴充部分所屬的延伸模組標識碼。

uniqueIdentifier
String

擴充元件的唯一標識符,可用來做為字典索引鍵。

適用於