ArtifactReferenceExtensionsInternal.CreateArtifactReferenceAsync 方法 (ILayer, GraphNode, EventHandler<CreateArtifactReferenceCompletedEventArgs>)
此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
命名空间: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.Internal
程序集: Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer(在 Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.dll 中)
语法
声明
<ExtensionAttribute> _
Public Shared Sub CreateArtifactReferenceAsync ( _
parentLayer As ILayer, _
artifact As GraphNode, _
completed As EventHandler(Of CreateArtifactReferenceCompletedEventArgs) _
)
public static void CreateArtifactReferenceAsync(
this ILayer parentLayer,
GraphNode artifact,
EventHandler<CreateArtifactReferenceCompletedEventArgs> completed
)
[ExtensionAttribute]
public:
static void CreateArtifactReferenceAsync(
ILayer^ parentLayer,
GraphNode^ artifact,
EventHandler<CreateArtifactReferenceCompletedEventArgs^>^ completed
)
static member CreateArtifactReferenceAsync :
parentLayer:ILayer *
artifact:GraphNode *
completed:EventHandler<CreateArtifactReferenceCompletedEventArgs> -> unit
public static function CreateArtifactReferenceAsync(
parentLayer : ILayer,
artifact : GraphNode,
completed : EventHandler<CreateArtifactReferenceCompletedEventArgs>
)
参数
- artifact
类型:Microsoft.VisualStudio.GraphModel.GraphNode
- completed
类型:System.EventHandler<CreateArtifactReferenceCompletedEventArgs>
使用说明
在 Visual Basic 和 C# 中,可以在 ILayer 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关更多信息,请参见扩展方法 (Visual Basic)或扩展方法(C# 编程指南)。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
ArtifactReferenceExtensionsInternal 类
CreateArtifactReferenceAsync 重载
Microsoft.VisualStudio.ArchitectureTools.Extensibility.Layer.Internal 命名空间