mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Cleanup: remove duplicate words in comments (#13539)
This commit is contained in:
@@ -654,7 +654,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the path path property, when bound from the pipeline.
|
||||
/// Gets or sets the path property, when bound from the pipeline.
|
||||
/// </summary>
|
||||
[Parameter(ParameterSetName = LiteralPathParameterSet,
|
||||
Mandatory = true, ValueFromPipeline = false, ValueFromPipelineByPropertyName = true)]
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets to no echo the input as is is typed. If set then the cmdlet returns a secure string.
|
||||
/// Gets or sets to no echo the input as is typed. If set then the cmdlet returns a secure string.
|
||||
/// </summary>
|
||||
[Parameter(ParameterSetName = "AsSecureString")]
|
||||
public
|
||||
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the console will echo the input as is is typed. If set then the cmdlet returns a regular string.
|
||||
/// Gets or sets whether the console will echo the input as is typed. If set then the cmdlet returns a regular string.
|
||||
/// </summary>
|
||||
[Parameter(ParameterSetName = "AsString")]
|
||||
public
|
||||
|
||||
@@ -447,7 +447,7 @@ namespace Microsoft.PowerShell
|
||||
/// </summary>
|
||||
/// <param name="hWnd">The window to show...</param>
|
||||
/// <param name="nCmdShow">The command to do.</param>
|
||||
/// <returns>True it it was successful.</returns>
|
||||
/// <returns>True if it was successful.</returns>
|
||||
[DllImport("user32.dll")]
|
||||
[return: MarshalAs(UnmanagedType.Bool)]
|
||||
internal static extern bool ShowWindow(IntPtr hWnd, Int32 nCmdShow);
|
||||
|
||||
@@ -156,7 +156,7 @@ namespace Microsoft.WSMan.Management
|
||||
/// <summary>
|
||||
/// The following is the definition of the input parameter "SelectorSet".
|
||||
/// SelectorSet is a hash table which helps in identify an instance of the
|
||||
/// management resource if there are are more than 1 instance of the resource
|
||||
/// management resource if there are more than 1 instance of the resource
|
||||
/// class.
|
||||
/// </summary>
|
||||
[Parameter(Position = 2,
|
||||
|
||||
@@ -306,7 +306,7 @@ namespace Microsoft.WSMan.Management
|
||||
/// <summary>
|
||||
/// The following is the definition of the input parameter "SelectorSet".
|
||||
/// SelectorSet is a hash table which helps in identify an instance of the
|
||||
/// management resource if there are are more than 1 instance of the resource
|
||||
/// management resource if there are more than 1 instance of the resource
|
||||
/// class.
|
||||
/// </summary>
|
||||
[Parameter(
|
||||
@@ -800,7 +800,7 @@ namespace Microsoft.WSMan.Management
|
||||
/// <summary>
|
||||
/// The following is the definition of the input parameter "SelectorSet".
|
||||
/// SelectorSet is a hash table which helps in identify an instance of the
|
||||
/// management resource if there are are more than 1 instance of the resource
|
||||
/// management resource if there are more than 1 instance of the resource
|
||||
/// class.
|
||||
/// </summary>
|
||||
[Parameter(Position = 1,
|
||||
@@ -1121,7 +1121,7 @@ namespace Microsoft.WSMan.Management
|
||||
/// <summary>
|
||||
/// The following is the definition of the input parameter "SelectorSet".
|
||||
/// SelectorSet is a hash table which helps in identify an instance of the
|
||||
/// management resource if there are are more than 1 instance of the resource
|
||||
/// management resource if there are more than 1 instance of the resource
|
||||
/// class.
|
||||
/// </summary>
|
||||
[Parameter(Position = 1, Mandatory = true,
|
||||
@@ -1398,7 +1398,7 @@ namespace Microsoft.WSMan.Management
|
||||
/// <summary>
|
||||
/// The following is the definition of the input parameter "SelectorSet".
|
||||
/// SelectorSet is a hash table which helps in identify an instance of the
|
||||
/// management resource if there are are more than 1 instance of the resource
|
||||
/// management resource if there are more than 1 instance of the resource
|
||||
/// class.
|
||||
/// </summary>
|
||||
[Parameter(Mandatory = true, Position = 1,
|
||||
|
||||
@@ -1159,10 +1159,10 @@ namespace System.Management.Automation
|
||||
/// <summary>This filesystem item is a socket.</summary>
|
||||
internal int IsSocket;
|
||||
|
||||
/// <summary>This filesystem item will run as the the owner if executed.</summary>
|
||||
/// <summary>This filesystem item will run as the owner if executed.</summary>
|
||||
internal int IsSetUid;
|
||||
|
||||
/// <summary>This filesystem item will run as the the group if executed.</summary>
|
||||
/// <summary>This filesystem item will run as the group if executed.</summary>
|
||||
internal int IsSetGid;
|
||||
|
||||
/// <summary>Whether the sticky bit is set on the filesystem item.</summary>
|
||||
|
||||
@@ -455,7 +455,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Make sure that the instance conforms to the the schema.
|
||||
/// Make sure that the instance conforms to the schema.
|
||||
/// </summary>
|
||||
/// <param name="classText"></param>
|
||||
internal void ValidateInstanceText(string classText)
|
||||
|
||||
+2
-2
@@ -533,7 +533,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper to to add any pre-load intrinsics to the db.
|
||||
/// Helper to add any pre-load intrinsics to the db.
|
||||
/// </summary>
|
||||
/// <param name="db">Db being initialized.</param>
|
||||
private static void AddPreLoadIntrinsics(TypeInfoDataBase db)
|
||||
@@ -542,7 +542,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper to to add any post-load intrinsics to the db.
|
||||
/// Helper to add any post-load intrinsics to the db.
|
||||
/// </summary>
|
||||
/// <param name="db">Db being initialized.</param>
|
||||
private static void AddPostLoadIntrinsics(TypeInfoDataBase db)
|
||||
|
||||
@@ -337,7 +337,7 @@ namespace System.Management.Automation
|
||||
/// If ResolvedCommand returns null, this property will
|
||||
/// return the name of the command that could not be resolved.
|
||||
/// If ResolvedCommand has not yet been called or was able
|
||||
/// to resolve the command, this this property will return null.
|
||||
/// to resolve the command, this property will return null.
|
||||
/// </summary>
|
||||
internal string UnresolvedCommandName { get; private set; }
|
||||
|
||||
|
||||
@@ -551,7 +551,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the aliases of the the current cmdlet.
|
||||
/// Get the aliases of the current cmdlet.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private List<string> GetAliasOfCurrentCmdlet()
|
||||
|
||||
@@ -430,7 +430,7 @@ namespace System.Management.Automation
|
||||
/// If null, the current user credential is used.
|
||||
/// </param>
|
||||
/// <param name="persist">
|
||||
/// It indicates if the the created PSDrive would be
|
||||
/// It indicates if the created PSDrive would be
|
||||
/// persisted across PowerShell sessions.
|
||||
/// </param>
|
||||
/// <throws>
|
||||
|
||||
@@ -6493,7 +6493,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// <summary>
|
||||
/// Load a binary module. A binary module is an assembly that should contain cmdlets.
|
||||
/// </summary>
|
||||
/// <param name="trySnapInName">If true, then then the registered snapins will also be searched when loading.</param>
|
||||
/// <param name="trySnapInName">If true, then the registered snapins will also be searched when loading.</param>
|
||||
/// <param name="moduleName">The name of the snapin or assembly to load.</param>
|
||||
/// <param name="fileName">The path to the assembly to load.</param>
|
||||
/// <param name="assemblyToLoad">The assembly to load so no lookup need be done.</param>
|
||||
@@ -6523,7 +6523,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// Load a binary module. A binary module is an assembly that should contain cmdlets.
|
||||
/// </summary>
|
||||
/// <param name="parentModule">The parent module for which this module is a nested module.</param>
|
||||
/// <param name="trySnapInName">If true, then then the registered snapins will also be searched when loading.</param>
|
||||
/// <param name="trySnapInName">If true, then the registered snapins will also be searched when loading.</param>
|
||||
/// <param name="moduleName">The name of the snapin or assembly to load.</param>
|
||||
/// <param name="fileName">The path to the assembly to load.</param>
|
||||
/// <param name="assemblyToLoad">The assembly to load so no lookup need be done.</param>
|
||||
|
||||
@@ -426,7 +426,7 @@ namespace System.Management.Automation
|
||||
internal PSMemberInfo ReferencedMember => this.LookupMember(ReferencedMemberName);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the the type to convert the referenced member's value. It might be
|
||||
/// Gets the type to convert the referenced member's value. It might be
|
||||
/// null when no conversion is done.
|
||||
/// </summary>
|
||||
public Type ConversionType { get; private set; }
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace System.Management.Automation
|
||||
public Exception Exception { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of <see cref="SettingValueExceptionEventArgs"/> setting the value of of the exception that triggered the associated event.
|
||||
/// Initializes a new instance of <see cref="SettingValueExceptionEventArgs"/> setting the value of the exception that triggered the associated event.
|
||||
/// </summary>
|
||||
/// <param name="exception">Exception that triggered the associated event.</param>
|
||||
internal SettingValueExceptionEventArgs(Exception exception)
|
||||
@@ -64,7 +64,7 @@ namespace System.Management.Automation
|
||||
public Exception Exception { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of <see cref="GettingValueExceptionEventArgs"/> setting the value of of the exception that triggered the associated event.
|
||||
/// Initializes a new instance of <see cref="GettingValueExceptionEventArgs"/> setting the value of the exception that triggered the associated event.
|
||||
/// </summary>
|
||||
/// <param name="exception">Exception that triggered the associated event.</param>
|
||||
internal GettingValueExceptionEventArgs(Exception exception)
|
||||
|
||||
@@ -1973,7 +1973,7 @@ namespace System.Management.Automation
|
||||
/// </summary>
|
||||
/// <param name="hWnd">The window to show...</param>
|
||||
/// <param name="nCmdShow">The command to do.</param>
|
||||
/// <returns>True it it was successful.</returns>
|
||||
/// <returns>True if it was successful.</returns>
|
||||
[DllImport("user32.dll")]
|
||||
internal static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);
|
||||
|
||||
|
||||
@@ -1413,7 +1413,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Convert mshObject that has has the properties of an HistoryInfo
|
||||
/// Convert mshObject that has the properties of an HistoryInfo
|
||||
/// object in to HistoryInfo object.
|
||||
/// </summary>
|
||||
/// <param name="mshObject">
|
||||
|
||||
@@ -3824,7 +3824,7 @@ namespace System.Management.Automation
|
||||
#region Event Handlers
|
||||
|
||||
/// <summary>
|
||||
/// Handler for state changed changed events for the currently running pipeline.
|
||||
/// Handler for state changed events for the currently running pipeline.
|
||||
/// </summary>
|
||||
/// <param name="source">
|
||||
/// Source of the event.
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// state and returns those PS session objects in the Opened state. One or more
|
||||
/// session objects can be specified for connecting, or a remote computer name can
|
||||
/// be specified and in this case all disconnected remote runspaces found on the
|
||||
/// remote computer will be be connected and PSSession objects created on the local
|
||||
/// remote computer will be connected and PSSession objects created on the local
|
||||
/// machine.
|
||||
///
|
||||
/// The cmdlet can be used in the following ways:
|
||||
|
||||
+1
-1
@@ -1541,7 +1541,7 @@ namespace System.Management.Automation
|
||||
/// <param name="exception"></param>
|
||||
/// <returns>
|
||||
/// ErrorRecord if exception is of type IContainsErrorRecord
|
||||
/// Null if if exception is not of type IContainsErrorRecord
|
||||
/// Null if exception is not of type IContainsErrorRecord
|
||||
/// </returns>
|
||||
internal static ErrorRecord GetErrorRecordFromException(Exception exception)
|
||||
{
|
||||
|
||||
@@ -364,7 +364,7 @@ namespace System.Management.Automation.Remoting
|
||||
/// <param name="fragmentBytes"></param>
|
||||
/// <param name="startIndex"></param>
|
||||
/// <returns>
|
||||
/// True if the the E-flag is set in the encoding. Otherwise false.
|
||||
/// True if the E-flag is set in the encoding. Otherwise false.
|
||||
/// </returns>
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If fragmentBytes is null.
|
||||
|
||||
@@ -1115,7 +1115,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Forces a state reset on a single runspace runspace pool.
|
||||
/// Forces a state reset on a single runspace pool.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="eventArgs"></param>
|
||||
|
||||
@@ -1244,7 +1244,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Process helpInfo forwarded over from other other providers, specificly AliasHelpProvider.
|
||||
/// Process helpInfo forwarded over from other providers, specificly AliasHelpProvider.
|
||||
/// This can return more than 1 helpinfo object.
|
||||
/// </summary>
|
||||
/// <param name="helpInfo">HelpInfo that is forwarded over.</param>
|
||||
|
||||
@@ -7120,7 +7120,7 @@ namespace Microsoft.PowerShell.Commands
|
||||
/// network resource.
|
||||
/// </summary>
|
||||
/// <param name="netResource">
|
||||
/// The The netResource structure contains information
|
||||
/// The netResource structure contains information
|
||||
/// about a network resource.</param>
|
||||
/// <param name="password">
|
||||
/// The password used to get connected to network resource.
|
||||
|
||||
@@ -115,7 +115,7 @@ namespace System.Management.Automation.Runspaces
|
||||
/// </exception>
|
||||
/// <remarks>
|
||||
/// If the enumeration contains elements equal to
|
||||
/// AutomationNull.Value, they are are ignored.
|
||||
/// AutomationNull.Value, they are ignored.
|
||||
/// This can cause the return value to be less than the size of
|
||||
/// the collection.
|
||||
/// </remarks>
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace System.Management.Automation
|
||||
{
|
||||
/// <summary>
|
||||
/// An PSTraceSource is a representation of a System.Diagnostics.TraceSource instance
|
||||
/// that is used the the Monad components to produce trace output.
|
||||
/// that is used in the Monad components to produce trace output.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// It is permitted to subclass <see cref="PSTraceSource"/>
|
||||
|
||||
@@ -287,7 +287,7 @@ namespace System.Management.Automation.Internal
|
||||
/// </exception>
|
||||
/// <remarks>
|
||||
/// If the enumeration contains elements equal to
|
||||
/// AutomationNull.Value, they are are ignored.
|
||||
/// AutomationNull.Value, they are ignored.
|
||||
/// This can cause the return value to be less than the size of
|
||||
/// the collection.
|
||||
/// </remarks>
|
||||
@@ -1317,7 +1317,7 @@ namespace System.Management.Automation.Internal
|
||||
/// </exception>
|
||||
/// <remarks>
|
||||
/// If the enumeration contains elements equal to
|
||||
/// AutomationNull.Value, they are are ignored.
|
||||
/// AutomationNull.Value, they are ignored.
|
||||
/// This can cause the return value to be less than the size of
|
||||
/// the collection.
|
||||
/// </remarks>
|
||||
|
||||
@@ -164,7 +164,7 @@ namespace System.Management.Automation.Internal
|
||||
/// </exception>
|
||||
/// <remarks>
|
||||
/// If the enumeration contains elements equal to
|
||||
/// AutomationNull.Value, they are are ignored.
|
||||
/// AutomationNull.Value, they are ignored.
|
||||
/// This can cause the return value to be less than the size of
|
||||
/// the collection.
|
||||
/// </remarks>
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace System.Management.Automation
|
||||
|
||||
/// <summary>
|
||||
/// An PSTraceSource is a representation of a System.Diagnostics.TraceSource instance
|
||||
/// that is used the the Monad components to produce trace output.
|
||||
/// that is used in the Monad components to produce trace output.
|
||||
/// </summary>
|
||||
/// <!--
|
||||
/// The StructuredTraceSource class is derived from TraceSource to provide granular
|
||||
|
||||
Reference in New Issue
Block a user