Поделиться через


DocumentInfo.Create Метод

Определение

Создает сведения.

public static Microsoft.CodeAnalysis.DocumentInfo Create (Microsoft.CodeAnalysis.DocumentId id, string name, System.Collections.Generic.IEnumerable<string> folders = default, Microsoft.CodeAnalysis.SourceCodeKind sourceCodeKind = Microsoft.CodeAnalysis.SourceCodeKind.Regular, Microsoft.CodeAnalysis.TextLoader loader = default, string filePath = default, bool isGenerated = false);
public static Microsoft.CodeAnalysis.DocumentInfo Create (Microsoft.CodeAnalysis.DocumentId id, string name, System.Collections.Generic.IEnumerable<string>? folders = default, Microsoft.CodeAnalysis.SourceCodeKind sourceCodeKind = Microsoft.CodeAnalysis.SourceCodeKind.Regular, Microsoft.CodeAnalysis.TextLoader? loader = default, string? filePath = default, bool isGenerated = false);
static member Create : Microsoft.CodeAnalysis.DocumentId * string * seq<string> * Microsoft.CodeAnalysis.SourceCodeKind * Microsoft.CodeAnalysis.TextLoader * string * bool -> Microsoft.CodeAnalysis.DocumentInfo
Public Shared Function Create (id As DocumentId, name As String, Optional folders As IEnumerable(Of String) = Nothing, Optional sourceCodeKind As SourceCodeKind = Microsoft.CodeAnalysis.SourceCodeKind.Regular, Optional loader As TextLoader = Nothing, Optional filePath As String = Nothing, Optional isGenerated As Boolean = false) As DocumentInfo

Параметры

name
String
folders
IEnumerable<String>
sourceCodeKind
SourceCodeKind
loader
TextLoader
filePath
String
isGenerated
Boolean

Возвращаемое значение

Применяется к