FileContext 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 FileContext 类的新实例。
public FileContext (Guid providerType, Guid contextType, object context, System.Collections.Generic.IReadOnlyCollection<string> inputFiles, string displayName = "", Microsoft.VisualStudio.Workspace.INotifyFileContextChanged notifyFileContextChanged = default);
new Microsoft.VisualStudio.Workspace.FileContext : Guid * Guid * obj * System.Collections.Generic.IReadOnlyCollection<string> * string * Microsoft.VisualStudio.Workspace.INotifyFileContextChanged -> Microsoft.VisualStudio.Workspace.FileContext
Public Sub New (providerType As Guid, contextType As Guid, context As Object, inputFiles As IReadOnlyCollection(Of String), Optional displayName As String = "", Optional notifyFileContextChanged As INotifyFileContextChanged = Nothing)
参数
- providerType
- Guid
创建此上下文的提供程序类型的标识符
- contextType
- Guid
中表示的对象类型和数据的标识符 context 。
这可用于与兼容的语言服务提供程序匹配。
- context
- Object
语言服务需要为此上下文的成员完全初始化的信息。
- inputFiles
- IReadOnlyCollection<String>
作为此上下文构造的输入的文件的工作区相对路径集。 这 不 是在执行生成过程中读取的文件集。
- displayName
- String
此上下文的用户友好名称 (例如 "Debug |任何 CPU ") 。 可以为空,但不得为空。
- notifyFileContextChanged
- INotifyFileContextChanged
用于通知的 INotifyFileContextChanged 实现