Microsoft.Extensions.FileProviders.Physical.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doc>
  3. <assembly>
  4. <name>Microsoft.Extensions.FileProviders.Physical</name>
  5. </assembly>
  6. <members>
  7. <member name="T:Microsoft.Extensions.FileProviders.Physical.ExclusionFilters">
  8. <summary>Specifies filtering behavior for files or directories.</summary>
  9. </member>
  10. <member name="F:Microsoft.Extensions.FileProviders.Physical.ExclusionFilters.DotPrefixed">
  11. <summary>Exclude files and directories when the name begins with period.</summary>
  12. </member>
  13. <member name="F:Microsoft.Extensions.FileProviders.Physical.ExclusionFilters.Hidden">
  14. <summary>Exclude files and directories when <see cref="F:System.IO.FileAttributes.Hidden" /> is set on <see cref="P:System.IO.FileSystemInfo.Attributes" />.</summary>
  15. </member>
  16. <member name="F:Microsoft.Extensions.FileProviders.Physical.ExclusionFilters.None">
  17. <summary>Do not exclude any files.</summary>
  18. </member>
  19. <member name="F:Microsoft.Extensions.FileProviders.Physical.ExclusionFilters.Sensitive">
  20. <summary>Equivalent to <c>DotPrefixed | Hidden | System</c>. Exclude files and directories when the name begins with a period, or has either <see cref="F:System.IO.FileAttributes.Hidden" /> or <see cref="F:System.IO.FileAttributes.System" /> is set on <see cref="P:System.IO.FileSystemInfo.Attributes" />.</summary>
  21. </member>
  22. <member name="F:Microsoft.Extensions.FileProviders.Physical.ExclusionFilters.System">
  23. <summary>Exclude files and directories when <see cref="F:System.IO.FileAttributes.System" /> is set on <see cref="P:System.IO.FileSystemInfo.Attributes" />.</summary>
  24. </member>
  25. <member name="T:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo">
  26. <summary>Represents a directory on a physical filesystem.</summary>
  27. </member>
  28. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.#ctor(System.IO.DirectoryInfo)">
  29. <summary>Initializes an instance of <see cref="T:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo" /> that wraps an instance of <see cref="T:System.IO.DirectoryInfo" /></summary>
  30. <param name="info">The directory</param>
  31. </member>
  32. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.CreateReadStream">
  33. <summary>Always throws an exception because read streams are not support on directories.</summary>
  34. <exception cref="T:System.InvalidOperationException">Always thrown</exception>
  35. <returns>Never returns</returns>
  36. </member>
  37. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.Exists">
  38. <summary>Determines if the resource exists in the underlying storage system.</summary>
  39. <returns>
  40. <see langword="true" /> if the resource exists in the underlying storage system; <see langword="false" /> otherwise.</returns>
  41. </member>
  42. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.IsDirectory">
  43. <summary>Always true.</summary>
  44. </member>
  45. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.LastModified">
  46. <summary>The time when the directory was last written to.</summary>
  47. </member>
  48. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.Length">
  49. <summary>Always equals -1.</summary>
  50. </member>
  51. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.Name">
  52. <summary>Gets the name of the file or directory, excluding the path.</summary>
  53. <returns>A string representing the name of the file or directory.</returns>
  54. </member>
  55. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo.PhysicalPath">
  56. <summary>Gets the full path to the file, including the file name.</summary>
  57. <returns>A string representing the full path to the file, or <see langword="null" /> if the file is not directly accessible.</returns>
  58. </member>
  59. <member name="T:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo">
  60. <summary>Represents a file on a physical filesystem.</summary>
  61. </member>
  62. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.#ctor(System.IO.FileInfo)">
  63. <summary>Initializes an instance of <see cref="T:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo" /> that wraps an instance of <see cref="T:System.IO.FileInfo" /></summary>
  64. <param name="info">The <see cref="T:System.IO.FileInfo" /></param>
  65. </member>
  66. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.CreateReadStream">
  67. <summary>Returns the file contents as a read-only stream.</summary>
  68. <returns>A read-only stream.</returns>
  69. </member>
  70. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.Exists">
  71. <summary>Determines if the resource exists in the underlying system.</summary>
  72. <returns>
  73. <see langword="true" /> if the resource exists in the underlying storage system; <see langword="false" /> otherwise.</returns>
  74. </member>
  75. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.IsDirectory">
  76. <summary>Always false.</summary>
  77. </member>
  78. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.LastModified">
  79. <summary>Gets the last time the file was modified.</summary>
  80. <returns>A datetime offset representing the last time the file was modified.</returns>
  81. </member>
  82. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.Length">
  83. <summary>The length of the file in bytes, or -1 for a directory or non-existing files.</summary>
  84. </member>
  85. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.Name">
  86. <summary>The name of the file or directory, not including any path.</summary>
  87. </member>
  88. <member name="P:Microsoft.Extensions.FileProviders.Physical.PhysicalFileInfo.PhysicalPath">
  89. <summary>The path to the file, including the file name. Return <see langword="null" /> if the file is not directly accessible.</summary>
  90. </member>
  91. <member name="T:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher">
  92. <summary>
  93. <para>A file watcher that watches a physical filesystem for changes.</para>
  94. <para>Triggers events on <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> when files are created, change, renamed, or deleted.</para>
  95. </summary>
  96. </member>
  97. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.#ctor(System.String,System.IO.FileSystemWatcher,System.Boolean)">
  98. <summary>Initializes an instance of <see cref="T:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher" /> that watches files in <paramref name="root" />. Wraps an instance of <see cref="T:System.IO.FileSystemWatcher" />.</summary>
  99. <param name="root">Root directory for the watcher.</param>
  100. <param name="fileSystemWatcher">The wrapped watcher that is watching <paramref name="root" />.</param>
  101. <param name="pollForChanges">
  102. <see langword="true" /> when the watcher should use polling to trigger instances of <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> created by <see cref="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(System.String)" />.</param>
  103. </member>
  104. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.#ctor(System.String,System.IO.FileSystemWatcher,System.Boolean,Microsoft.Extensions.FileProviders.Physical.ExclusionFilters)">
  105. <summary>Initializes an instance of <see cref="T:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher" /> that watches files in <paramref name="root" />. Wraps an instance of <see cref="T:System.IO.FileSystemWatcher" />.</summary>
  106. <param name="root">Root directory for the watcher.</param>
  107. <param name="fileSystemWatcher">The wrapped watcher that is watching <paramref name="root" />.</param>
  108. <param name="pollForChanges">
  109. <see langword="true" /> when the watcher should use polling to trigger instances of
  110. <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> created by <see cref="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(System.String)" />.</param>
  111. <param name="filters">Specifies which files or directories are excluded. Notifications of changes to are not raised to these.</param>
  112. </member>
  113. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.CreateFileChangeToken(System.String)">
  114. <summary>
  115. <para>Creates an instance of <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> for all files and directories that match the <paramref name="filter" />.</para>
  116. <para>Globbing patterns are relative to the root directory given in the constructor <see cref="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.#ctor(System.String,System.IO.FileSystemWatcher,System.Boolean)" />. Globbing patterns are interpreted by <see cref="T:Microsoft.Extensions.FileSystemGlobbing.Matcher" />.</para>
  117. </summary>
  118. <param name="filter">A globbing pattern for files and directories to watch.</param>
  119. <exception cref="T:System.ArgumentNullException">When <paramref name="filter" /> is null.</exception>
  120. <returns>A change token for all files that match the filter.</returns>
  121. </member>
  122. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.Dispose">
  123. <summary>Disposes the provider. Change tokens may not trigger after the provider is disposed.</summary>
  124. </member>
  125. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.Dispose(System.Boolean)">
  126. <summary>Disposes the provider.</summary>
  127. <param name="disposing">If <see langword="true" />, is invoked from <see cref="M:System.IDisposable.Dispose" />.</param>
  128. </member>
  129. <member name="M:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher.Finalize">
  130. <summary>Destructor for <see cref="T:Microsoft.Extensions.FileProviders.Physical.PhysicalFilesWatcher" />.</summary>
  131. </member>
  132. <member name="T:Microsoft.Extensions.FileProviders.Physical.PollingFileChangeToken">
  133. <summary>
  134. <para>A change token that polls for file system changes.</para>
  135. <para>This change token does not raise any change callbacks. Callers should watch for <see cref="P:Microsoft.Extensions.FileProviders.Physical.PollingFileChangeToken.HasChanged" /> to turn
  136. from false to true
  137. and dispose the token after this happens.</para>
  138. </summary>
  139. </member>
  140. <member name="M:Microsoft.Extensions.FileProviders.Physical.PollingFileChangeToken.#ctor(System.IO.FileInfo)">
  141. <summary>Initializes a new instance of <see cref="T:Microsoft.Extensions.FileProviders.Physical.PollingFileChangeToken" /> that polls the specified file for changes as
  142. determined by <see cref="P:System.IO.FileSystemInfo.LastWriteTimeUtc" />.</summary>
  143. <param name="fileInfo">The <see cref="T:System.IO.FileInfo" /> to poll</param>
  144. </member>
  145. <member name="M:Microsoft.Extensions.FileProviders.Physical.PollingFileChangeToken.RegisterChangeCallback(System.Action{System.Object},System.Object)">
  146. <summary>Does not actually register callbacks.</summary>
  147. <param name="callback">This parameter is ignored</param>
  148. <param name="state">This parameter is ignored</param>
  149. <returns>A disposable object that noops when disposed</returns>
  150. </member>
  151. <member name="P:Microsoft.Extensions.FileProviders.Physical.PollingFileChangeToken.ActiveChangeCallbacks">
  152. <summary>Always false.</summary>
  153. </member>
  154. <member name="P:Microsoft.Extensions.FileProviders.Physical.PollingFileChangeToken.HasChanged">
  155. <summary>True when the file has changed since the change token was created. Once the file changes, this value is always true.</summary>
  156. </member>
  157. <member name="T:Microsoft.Extensions.FileProviders.Physical.PollingWildCardChangeToken">
  158. <summary>A polling based <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> for wildcard patterns.</summary>
  159. </member>
  160. <member name="M:Microsoft.Extensions.FileProviders.Physical.PollingWildCardChangeToken.#ctor(System.String,System.String)">
  161. <summary>Initializes a new instance of <see cref="T:Microsoft.Extensions.FileProviders.Physical.PollingWildCardChangeToken" />.</summary>
  162. <param name="root">The root of the file system.</param>
  163. <param name="pattern">The pattern to watch.</param>
  164. </member>
  165. <member name="M:Microsoft.Extensions.FileProviders.Physical.PollingWildCardChangeToken.GetLastWriteUtc(System.String)">
  166. <summary>Gets the last write time of the file at the specified <paramref name="path" />.</summary>
  167. <param name="path">The root relative path.</param>
  168. <returns>The <see cref="T:System.DateTime" /> that the file was last modified.</returns>
  169. </member>
  170. <member name="M:Microsoft.Extensions.FileProviders.Physical.PollingWildCardChangeToken.Microsoft#Extensions#Primitives#IChangeToken#RegisterChangeCallback(System.Action{System.Object},System.Object)">
  171. <summary>Registers for a callback that will be invoked when the entry has changed.
  172. <see cref="P:Microsoft.Extensions.Primitives.IChangeToken.HasChanged" /> MUST be set before the callback is invoked.</summary>
  173. <param name="callback">The <see cref="T:System.Action`1" /> to invoke.</param>
  174. <param name="state">State to be passed into the callback.</param>
  175. <returns>An <see cref="T:System.IDisposable" /> that is used to unregister the callback.</returns>
  176. </member>
  177. <member name="P:Microsoft.Extensions.FileProviders.Physical.PollingWildCardChangeToken.ActiveChangeCallbacks">
  178. <summary>Indicates if this token will pro-actively raise callbacks. If <see langword="false" />, the token consumer must poll <see cref="P:Microsoft.Extensions.Primitives.IChangeToken.HasChanged" /> to detect changes.</summary>
  179. </member>
  180. <member name="P:Microsoft.Extensions.FileProviders.Physical.PollingWildCardChangeToken.HasChanged">
  181. <summary>Gets a value that indicates if a change has occurred.</summary>
  182. </member>
  183. <member name="T:Microsoft.Extensions.FileProviders.PhysicalFileProvider">
  184. <summary>Looks up files using the on-disk file system.</summary>
  185. </member>
  186. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.#ctor(System.String)">
  187. <summary>Initializes a new instance of a PhysicalFileProvider at the given root directory.</summary>
  188. <param name="root">The root directory. This should be an absolute path.</param>
  189. </member>
  190. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.#ctor(System.String,Microsoft.Extensions.FileProviders.Physical.ExclusionFilters)">
  191. <summary>Initializes a new instance of a PhysicalFileProvider at the given root directory.</summary>
  192. <param name="root">The root directory. This should be an absolute path.</param>
  193. <param name="filters">Specifies which files or directories are excluded.</param>
  194. </member>
  195. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.Dispose">
  196. <summary>Disposes the provider. Change tokens may not trigger after the provider is disposed.</summary>
  197. </member>
  198. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.Dispose(System.Boolean)">
  199. <summary>Disposes the provider.</summary>
  200. <param name="disposing">
  201. <see langword="true" /> is invoked from <see cref="M:System.IDisposable.Dispose" />.</param>
  202. </member>
  203. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.Finalize">
  204. <summary>Destructor for <see cref="T:Microsoft.Extensions.FileProviders.PhysicalFileProvider" />.</summary>
  205. </member>
  206. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.GetDirectoryContents(System.String)">
  207. <summary>Enumerate a directory at the given path, if any.</summary>
  208. <param name="subpath">A path under the root directory. Leading slashes are ignored.</param>
  209. <returns>
  210. Contents of the directory. Caller must check <see cref="P:Microsoft.Extensions.FileProviders.IDirectoryContents.Exists" /> property. <see cref="T:Microsoft.Extensions.FileProviders.NotFoundDirectoryContents" /> if
  211. <paramref name="subpath" /> is absolute, if the directory does not exist, or <paramref name="subpath" /> has invalid
  212. characters.
  213. .</returns>
  214. </member>
  215. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.GetFileInfo(System.String)">
  216. <summary>Locate a file at the given path by directly mapping path segments to physical directories.</summary>
  217. <param name="subpath">A path under the root directory</param>
  218. <returns>The file information. Caller must check <see cref="P:Microsoft.Extensions.FileProviders.IFileInfo.Exists" /> property.</returns>
  219. </member>
  220. <member name="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(System.String)">
  221. <summary>
  222. <para>Creates an <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> for the specified <paramref name="filter" />.</para>
  223. <para>Globbing patterns are interpreted by <see cref="T:Microsoft.Extensions.FileSystemGlobbing.Matcher" />.</para>
  224. </summary>
  225. <param name="filter">
  226. Filter string used to determine what files or folders to monitor. Examples: <c>\*\*/\*.cs</c>, <c>\*.\*</c>, <c>subfolder/\*\*/\*.cshtml</c>.</param>
  227. <returns>
  228. <para>An <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> that's notified when a file matching <paramref name="filter" /> is added, modified, or deleted.</para>
  229. <para>OR</para>
  230. <para>A <see cref="T:Microsoft.Extensions.FileProviders.NullChangeToken" /> if <paramref name="filter" /> has invalid filter characters or is an absolute path or is outside the root directory specified in the constructor <see cref="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.#ctor(System.String)" />.</para>
  231. </returns>
  232. </member>
  233. <member name="P:Microsoft.Extensions.FileProviders.PhysicalFileProvider.Root">
  234. <summary>The root directory for this instance.</summary>
  235. </member>
  236. <member name="P:Microsoft.Extensions.FileProviders.PhysicalFileProvider.UseActivePolling">
  237. <summary>Gets or sets a value that determines if this instance of <see cref="T:Microsoft.Extensions.FileProviders.PhysicalFileProvider" />
  238. actively polls for file changes.
  239. <para>
  240. When <see langword="true" />, the <see cref="T:Microsoft.Extensions.Primitives.IChangeToken" /> returned by <see cref="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(System.String)" /> actively polls for file changes
  241. (<see cref="P:Microsoft.Extensions.Primitives.IChangeToken.ActiveChangeCallbacks" /> is <see langword="true" />) instead of being passive.</para><para>
  242. This property is only effective when <see cref="P:Microsoft.Extensions.FileProviders.PhysicalFileProvider.UsePollingFileWatcher" /> is set.</para></summary>
  243. <returns>The default value of this property is determined by the value of the environment variable named <c>DOTNET_USE_POLLING_FILE_WATCHER</c>.
  244. When <see langword="true" /> or <c>1</c>, this property defaults to <see langword="true" />; otherwise <see langword="false" />.</returns>
  245. </member>
  246. <member name="P:Microsoft.Extensions.FileProviders.PhysicalFileProvider.UsePollingFileWatcher">
  247. <summary>Gets or sets a value that determines if this instance of <see cref="T:Microsoft.Extensions.FileProviders.PhysicalFileProvider" />
  248. uses polling to determine file changes.
  249. <para>
  250. By default, <see cref="T:Microsoft.Extensions.FileProviders.PhysicalFileProvider" /> uses <see cref="T:System.IO.FileSystemWatcher" /> to listen to file change events for <see cref="M:Microsoft.Extensions.FileProviders.PhysicalFileProvider.Watch(System.String)" />. <see cref="T:System.IO.FileSystemWatcher" /> is ineffective in some scenarios such as mounted drives. Polling is required to effectively watch for file changes.</para></summary>
  251. <returns>
  252. The default value of this property is determined by the value of environment variable named <c>DOTNET_USE_POLLING_FILE_WATCHER</c>. When <see langword="true" /> or <c>1</c>, this property defaults to <see langword="true" />; otherwise <see langword="false" />.</returns>
  253. </member>
  254. </members>
  255. </doc>