11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT License.
33
4+ #nullable enable
45namespace System . Management . Automation . Provider
56{
67 #region IContentCmdletProvider
@@ -46,7 +47,7 @@ public interface IContentCmdletProvider
4647 /// the user unless the Force property is set to true. An error should be sent to the WriteError method if
4748 /// the path represents an item that is hidden from the user and Force is set to false.
4849 /// </remarks>
49- IContentReader GetContentReader ( string path ) ;
50+ IContentReader ? GetContentReader ( string path ) ;
5051
5152 /// <summary>
5253 /// Gives the provider an opportunity to attach additional parameters to the
@@ -63,7 +64,7 @@ public interface IContentCmdletProvider
6364 ///
6465 /// The default implementation returns null. (no additional parameters)
6566 /// </returns>
66- object GetContentReaderDynamicParameters ( string path ) ;
67+ object ? GetContentReaderDynamicParameters ( string path ) ;
6768
6869 /// <summary>
6970 /// Gets the content writer for the item at the specified path.
@@ -87,7 +88,7 @@ public interface IContentCmdletProvider
8788 /// the user unless the Force property is set to true. An error should be sent to the WriteError method if
8889 /// the path represents an item that is hidden from the user and Force is set to false.
8990 /// </remarks>
90- IContentWriter GetContentWriter ( string path ) ;
91+ IContentWriter ? GetContentWriter ( string path ) ;
9192
9293 /// <summary>
9394 /// Gives the provider an opportunity to attach additional parameters to the
@@ -104,7 +105,7 @@ public interface IContentCmdletProvider
104105 ///
105106 /// The default implementation returns null. (no additional parameters)
106107 /// </returns>
107- object GetContentWriterDynamicParameters ( string path ) ;
108+ object ? GetContentWriterDynamicParameters ( string path ) ;
108109
109110 /// <summary>
110111 /// Clears the content from the specified item.
@@ -141,7 +142,7 @@ public interface IContentCmdletProvider
141142 ///
142143 /// The default implementation returns null. (no additional parameters)
143144 /// </returns>
144- object ClearContentDynamicParameters ( string path ) ;
145+ object ? ClearContentDynamicParameters ( string path ) ;
145146 }
146147
147148 #endregion IContentCmdletProvider
0 commit comments