Class FileModel
Namespace:Microsoft.DocAsCode.Plugins
Assembly:Microsoft.DocAsCode.Plugins.dll
Syntax
public sealed class FileModel : IDisposable
Constructors
Declaration
public FileModel(FileAndType ft, object content, FileAndType original = null, IFormatter serializer = null)
Parameters
Declaration
public FileModel(FileAndType ft, object content, FileAndType original, IFormatter serializer, string key)
Parameters
Properties
BaseDir
Declaration
public string BaseDir { get; set; }
Property Value
Content
Declaration
public object Content { get; set; }
Property Value
DocumentType
Declaration
public string DocumentType { get; set; }
Property Value
File
Declaration
public string File { get; set; }
Property Value
FileAndType
Declaration
public FileAndType FileAndType { get; }
Property Value
FileLinkSources
Declaration
public ImmutableDictionary<string, ImmutableList<LinkSourceInfo>> FileLinkSources { get; set; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableDictionary<String, System.Collections.Immutable.ImmutableList<LinkSourceInfo>> |
|
Key
Declaration
public string Key { get; }
Property Value
LinkToFiles
Declaration
public ImmutableHashSet<string> LinkToFiles { get; set; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableHashSet<String> |
|
LinkToUids
Declaration
public ImmutableHashSet<string> LinkToUids { get; set; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableHashSet<String> |
|
LocalPathFromRoot
Declaration
public string LocalPathFromRoot { get; set; }
Property Value
ManifestProperties
Declaration
public dynamic ManifestProperties { get; }
Property Value
ModelWithCache
Declaration
public ModelWithCache ModelWithCache { get; }
Property Value
OriginalFileAndType
Declaration
public FileAndType OriginalFileAndType { get; }
Property Value
Properties
Declaration
public dynamic Properties { get; }
Property Value
Serializer
Declaration
public IFormatter Serializer { get; set; }
Property Value
Type
Declaration
public DocumentType Type { get; }
Property Value
UidLinkSources
Declaration
public ImmutableDictionary<string, ImmutableList<LinkSourceInfo>> UidLinkSources { get; set; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableDictionary<String, System.Collections.Immutable.ImmutableList<LinkSourceInfo>> |
|
Uids
Declaration
public ImmutableArray<UidDefinition> Uids { get; set; }
Property Value
Type |
Description |
System.Collections.Immutable.ImmutableArray<UidDefinition> |
|
Methods
Dispose()
Declaration
Implements
Events
ContentAccessed
Declaration
public event EventHandler ContentAccessed
Event Type
FileOrBaseDirChanged
Declaration
public event EventHandler FileOrBaseDirChanged
Event Type
UidsChanged
Declaration
public event EventHandler<PropertyChangedEventArgs<ImmutableArray<UidDefinition>>> UidsChanged
Event Type
Extension Methods