ArtifactReferenceExtensions.CreateArtifactReferenceAsync Method (ILayer, ProjectItem, EventHandler<CreateArtifactReferenceCompletedEventArgs>, Object)
Link this layer to a Visual Studio project item such as a file. This is an asynchronous operation. The completed event will be called when the operation has terminated.
Namespace: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer
Assembly: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer (in Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll)
Syntax
[CLSCompliantAttribute(false)]
public static void CreateArtifactReferenceAsync(
this ILayer parentLayer,
ProjectItem projectItem,
EventHandler<CreateArtifactReferenceCompletedEventArgs> completed,
object userState
)
public:
[ExtensionAttribute]
[CLSCompliantAttribute(false)]
static void CreateArtifactReferenceAsync(
ILayer^ parentLayer,
ProjectItem^ projectItem,
EventHandler<CreateArtifactReferenceCompletedEventArgs^>^ completed,
Object^ userState
)
[<CLSCompliantAttribute(false)>]
static member CreateArtifactReferenceAsync :
parentLayer:ILayer *
projectItem:ProjectItem *
completed:EventHandler<CreateArtifactReferenceCompletedEventArgs> *
userState:Object -> unit
<ExtensionAttribute>
<CLSCompliantAttribute(False)>
Public Shared Sub CreateArtifactReferenceAsync (
parentLayer As ILayer,
projectItem As ProjectItem,
completed As EventHandler(Of CreateArtifactReferenceCompletedEventArgs),
userState As Object
)
Parameters
parentLayer
Type: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.ILayerThe parent layer.
projectItem
Type: EnvDTE.ProjectItemThe project item to reference.
completed
Type: System.EventHandler<CreateArtifactReferenceCompletedEventArgs>Callback when artifact references have been created.
userState
Type: System.ObjectObject passed to the callback.
See Also
CreateArtifactReferenceAsync Overload
ArtifactReferenceExtensions Class
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer Namespace
Return to top