Compartir a través de


FileContext Constructor

Definition

Initializes a new instance of the FileContext class.

public FileContext (Guid providerType, Guid contextType, object context, System.Collections.Generic.IReadOnlyCollection<string> inputFiles, string displayName = "", Microsoft.VisualStudio.Workspace.INotifyFileContextChanged notifyFileContextChanged = default);
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)

Parameters

providerType
Guid

An identifier for the type of the provider that create this Context

contextType
Guid

An identifier for the type of object and data represented in context. This may be used to match with a compatible language service provider.

context
Object

The information a language service would need to fully initialize for a member of this context.

inputFiles
IReadOnlyCollection<String>

The set of workspace-relative paths to files that served as inputs to the construction of this context. This is not the set of files that would be read during execution of a build.

displayName
String

The user-friendly name for this context (e.g. "Debug|Any CPU"). May be empty, but must not be null.

notifyFileContextChanged
INotifyFileContextChanged

The INotifyFileContextChanged implementation to use it for notification

Applies to