Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/System.Management.Automation/namespaces/IContentProvider.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#nullable enable
namespace System.Management.Automation.Provider
{
#region IContentCmdletProvider
Expand Down Expand Up @@ -46,7 +47,7 @@ public interface IContentCmdletProvider
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
/// </remarks>
IContentReader GetContentReader(string path);
IContentReader? GetContentReader(string path);

/// <summary>
/// Gives the provider an opportunity to attach additional parameters to the
Expand All @@ -63,7 +64,7 @@ public interface IContentCmdletProvider
///
/// The default implementation returns null. (no additional parameters)
/// </returns>
object GetContentReaderDynamicParameters(string path);
object? GetContentReaderDynamicParameters(string path);

/// <summary>
/// Gets the content writer for the item at the specified path.
Expand All @@ -87,7 +88,7 @@ public interface IContentCmdletProvider
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
/// </remarks>
IContentWriter GetContentWriter(string path);
IContentWriter? GetContentWriter(string path);

/// <summary>
/// Gives the provider an opportunity to attach additional parameters to the
Expand All @@ -104,7 +105,7 @@ public interface IContentCmdletProvider
///
/// The default implementation returns null. (no additional parameters)
/// </returns>
object GetContentWriterDynamicParameters(string path);
object? GetContentWriterDynamicParameters(string path);

/// <summary>
/// Clears the content from the specified item.
Expand Down Expand Up @@ -141,7 +142,7 @@ public interface IContentCmdletProvider
///
/// The default implementation returns null. (no additional parameters)
/// </returns>
object ClearContentDynamicParameters(string path);
object? ClearContentDynamicParameters(string path);
}

#endregion IContentCmdletProvider
Expand Down