Fix spelling in XML docs (#15939)

This commit is contained in:
arfy slowy 2021-08-17 11:01:04 +07:00 committed by GitHub
parent a162856af5
commit 55855fbe5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 48 additions and 48 deletions

View file

@ -690,7 +690,7 @@ namespace Microsoft.Management.UI.Internal
{
parameterType = GetPropertyString(parameterTypeData, "name");
// If there is no type for the paramter, we expect it is System.Object
// If there is no type for the parameter, we expect it is System.Object
if (string.IsNullOrEmpty(parameterType))
{
parameterType = "object";

View file

@ -128,7 +128,7 @@ namespace Microsoft.Management.UI.Internal
}
/// <summary>
/// Highlights all ocurrences of <paramref name="search"/>.
/// Highlights all occurrences of <paramref name="search"/>.
/// This is called after all calls to AddText have been made.
/// </summary>
/// <param name="search">Search string.</param>
@ -249,7 +249,7 @@ namespace Microsoft.Management.UI.Internal
/// </summary>
/// <param name="currentSpanIndex">Current index within <paramref name="allSpans"/>.</param>
/// <param name="currentSpan">Current span within <paramref name="allSpans"/>.</param>
/// <param name="caracterPosition">Caracter position. This comes from a position within this.textBuilder.</param>
/// <param name="caracterPosition">Character position. This comes from a position within this.textBuilder.</param>
/// <param name="allSpans">The collection of spans. This is either this.boldSpans or this.highlightedSpans.</param>
private static void MoveSpanToPosition(ref int currentSpanIndex, ref TextSpan? currentSpan, int caracterPosition, List<TextSpan> allSpans)
{

View file

@ -56,7 +56,7 @@ namespace Microsoft.Management.UI.Internal
}
// If the caret is in the end of a highlight we move to the adjacent run
// It has to be in the end because if there is a match at the begining of the file
// It has to be in the end because if there is a match at the beginning of the file
// and the caret has not been touched (so it is in the beginning of the file too)
// we want to highlight this first match.
// Considering the caller allways set the caret to the end of the highlight

View file

@ -9,7 +9,7 @@ using System.Diagnostics;
namespace Microsoft.Management.UI.Internal
{
/// <summary>
/// The FilterEvaluator class is responsible for allowing the registeration of
/// The FilterEvaluator class is responsible for allowing the registration of
/// the FilterExpressionProviders and producing a FilterExpression composed of
/// the FilterExpression returned from the providers.
/// </summary>

View file

@ -13,7 +13,7 @@ namespace Microsoft.Management.UI.Internal
{
/// <summary>
/// Gets a values indicating whether the supplied item has meet the
/// criteria rule specificed by the rule.
/// criteria rule specified by the rule.
/// </summary>
/// <param name="item">
/// The item to evaluate.

View file

@ -25,7 +25,7 @@ namespace Microsoft.Management.UI.Internal
}
/// <summary>
/// Gets a string that indentifies which group this
/// Gets a string that identifies which group this
/// item belongs to.
/// </summary>
public string GroupId

View file

@ -296,7 +296,7 @@ namespace Microsoft.Management.UI.Internal
this.itemsSourceIsEmpty = this.ItemsSource != null && this.ItemsSource.GetEnumerator().MoveNext() == false;
// A view can be created if there is data to auto-generate columns, or columns are added programatically \\
// A view can be created if there is data to auto-generate columns, or columns are added programmatically \\
bool canCreateView = (this.ItemsSource != null) &&
(this.itemsSourceIsEmpty == false || this.AutoGenerateColumns == false);

View file

@ -465,7 +465,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
}
/// <summary>
/// Determins whether current command name and a specifed ParameterSetName have same name.
/// Determines whether current command name and a specified ParameterSetName have same name.
/// </summary>
/// <param name="name">The name of ShareParameterSet.</param>
/// <returns>Return true is ShareParameterSet. Else return false.</returns>

View file

@ -373,7 +373,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
}
/// <summary>
/// Callled in response to a GUI event that requires the command to be run.
/// Called in response to a GUI event that requires the command to be run.
/// </summary>
internal void OnRunSelectedCommand()
{

View file

@ -39,7 +39,7 @@ namespace Microsoft.PowerShell.Commands.ShowCommandInternal
/// Initializes a new instance of the ParameterSetViewModel class.
/// </summary>
/// <param name="name">The name of the parameterSet.</param>
/// <param name="parameters">The array parametes of the parameterSet.</param>
/// <param name="parameters">The array parameters of the parameterSet.</param>
[SuppressMessage("Microsoft.Design", "CA1002:DoNotExposeGenericLists", Justification = "this type is internal, made public only for WPF Binding")]
public ParameterSetViewModel(
string name,

View file

@ -245,7 +245,7 @@ namespace System.Diagnostics
/// A difference counter that shows the change in the measured attribute
/// between the two most recent sample intervals. It is the same as the
/// CounterDelta32 counter type except that is uses larger fields to
/// accomodate larger values.</summary>
/// accommodate larger values.</summary>
CounterDelta64 = 4195584
}
}

View file

@ -41,7 +41,7 @@ namespace Microsoft.PowerShell.Commands
public string Schema { get; set; }
/// <summary>
/// Gets or sets path to the file containg schema to validate the JSON string against.
/// Gets or sets path to the file containing schema to validate the JSON string against.
/// This is optional parameter.
/// </summary>
[Parameter(Position = 1, ParameterSetName = SchemaFileParameterSet)]

View file

@ -78,7 +78,7 @@ namespace Microsoft.PowerShell.Commands
public static string FileReadError { get { return UtilityCommonStrings.FileReadError; } }
/// <summary>
/// The resource string used to indicate 'PATH:' in the formating header.
/// The resource string used to indicate 'PATH:' in the formatting header.
/// </summary>
public static string FormatHexPathPrefix { get { return UtilityCommonStrings.FormatHexPathPrefix; } }

View file

@ -132,7 +132,7 @@ namespace Microsoft.PowerShell.Commands
public virtual SwitchParameter AllowUnencryptedAuthentication { get; set; }
/// <summary>
/// Gets or sets the Authentication property used to determin the Authentication method for the web session.
/// Gets or sets the Authentication property used to determine the Authentication method for the web session.
/// Authentication does not work with UseDefaultCredentials.
/// Authentication over unencrypted sessions requires AllowUnencryptedAuthentication.
/// Basic: Requires Credential.

View file

@ -2715,7 +2715,7 @@ namespace Microsoft.PowerShell
}
else
{
// an exception ocurred when the command was executed. Tell the user about it.
// an exception occurred when the command was executed. Tell the user about it.
_parent.ReportException(e, _exec);
}

View file

@ -457,7 +457,7 @@ namespace Microsoft.PowerShell
}
// if the new size will extend past the edge of screen buffer, then move the window position to try to
// accomodate that.
// accommodate that.
ConsoleControl.SMALL_RECT r = bufferInfo.WindowRect;

View file

@ -411,7 +411,7 @@ namespace Microsoft.PowerShell
private enum NotificationType
{
/// <summary>
/// Turn off the udpate notification.
/// Turn off the update notification.
/// </summary>
Off = 0,

View file

@ -107,7 +107,7 @@ namespace System.Diagnostics.Eventing
}
//
// implement Dispose Pattern to early deregister from ETW insted of waiting for
// implement Dispose Pattern to early deregister from ETW instead of waiting for
// the finalizer to call deregistration.
// Once the user is done with the provider it needs to call Close() or Dispose()
// If neither are called the finalizer will unregister the provider anyway

View file

@ -7396,7 +7396,7 @@ namespace System.Management.Automation
}
/// <summary>
/// This class is very similar to the restricted langauge checker, but it is meant to allow more things, yet still
/// This class is very similar to the restricted language checker, but it is meant to allow more things, yet still
/// be considered "safe", at least in the sense that tab completion can rely on it to not do bad things. The primary
/// use is for intellisense where you don't want to run arbitrary code, but you do want to know the values
/// of various expressions so you can get the members.

View file

@ -66,7 +66,7 @@ namespace System.Management.Automation.Subsystem
/// directly interacting with the implementation proxy object of `IPrediction`.
/// </remarks>
/// <typeparam name="TConcreteSubsystem">The concrete subsystem base type.</typeparam>
/// <returns>The most recently registered implmentation object of the concrete subsystem.</returns>
/// <returns>The most recently registered implementation object of the concrete subsystem.</returns>
internal static TConcreteSubsystem? GetSubsystem<TConcreteSubsystem>()
where TConcreteSubsystem : class, ISubsystem
{
@ -87,7 +87,7 @@ namespace System.Management.Automation.Subsystem
/// Return an empty collection when the given subsystem is not registered.
/// </summary>
/// <typeparam name="TConcreteSubsystem">The concrete subsystem base type.</typeparam>
/// <returns>A readonly collection of all implmentation objects registered for the concrete subsystem.</returns>
/// <returns>A readonly collection of all implementation objects registered for the concrete subsystem.</returns>
internal static ReadOnlyCollection<TConcreteSubsystem> GetSubsystems<TConcreteSubsystem>()
where TConcreteSubsystem : class, ISubsystem
{

View file

@ -2191,7 +2191,7 @@ namespace System.Management.Automation.Runspaces
startInfo.ArgumentList.Add(string.Format(CultureInfo.InvariantCulture, @"-i ""{0}""", this.KeyFilePath));
}
// pass "-l login_name" commmand line argument to ssh if UserName is set
// pass "-l login_name" command line argument to ssh if UserName is set
// if UserName is not set, then ssh will use User from ssh_config if defined else the environment user by default
if (!string.IsNullOrEmpty(this.UserName))
{

View file

@ -17,7 +17,7 @@ namespace System.Management.Automation
public sealed class RunspacePoolStateInfo
{
/// <summary>
/// State of the runspace pool when this event occured.
/// State of the runspace pool when this event occurred.
/// </summary>
public RunspacePoolState State { get; }

View file

@ -279,7 +279,7 @@ namespace System.Management.Automation
}
if (e != null)
s_tracer.WriteLine("Error occured in DscResourceHelpProvider {0}", e.Message);
s_tracer.WriteLine("Error occurred in DscResourceHelpProvider {0}", e.Message);
if (reportErrors && (e != null))
{

View file

@ -123,7 +123,7 @@ namespace System.Management.Automation
/// </atomicXml>
/// In this case, an PSObject that wraps string "atomic xml text" will be returned with following properties
/// attribute => name
/// 3. Composite xml, which is an xmlNode with structured child nodes, but not a special case for Maml formating.
/// 3. Composite xml, which is an xmlNode with structured child nodes, but not a special case for Maml formatting.
/// <compositeXml attribute="attribute">
/// <singleChildNode>
/// single child node text

View file

@ -567,7 +567,7 @@ namespace Microsoft.PowerShell.Commands
(e is UnauthorizedAccessException) ||
(e is ArgumentNullException))
{
// Exception contains specific message about the error occured and so no need for errordetails.
// Exception contains specific message about the error occurred and so no need for errordetails.
_provider.WriteError(new ErrorRecord(e, "GetContentReaderIOError", ErrorCategory.ReadError, _path));
}
else

View file

@ -1359,7 +1359,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioError)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
ErrorRecord er = new ErrorRecord(ioError, "GetItemIOError", ErrorCategory.ReadError, path);
WriteError(er);
}
@ -2250,7 +2250,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "RenameItemIOError", ErrorCategory.WriteError, path));
}
catch (UnauthorizedAccessException accessException)
@ -2362,7 +2362,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException exception)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(exception, "NewItemIOError", ErrorCategory.WriteError, path));
}
catch (UnauthorizedAccessException accessException)
@ -2858,7 +2858,7 @@ namespace Microsoft.PowerShell.Commands
// Ignore the error if force was specified
if (!Force)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "CreateDirectoryIOError", ErrorCategory.WriteError, path));
}
}
@ -2933,7 +2933,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "CreateIntermediateDirectoriesIOError", ErrorCategory.WriteError, path));
}
catch (UnauthorizedAccessException accessException)
@ -3076,7 +3076,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException exception)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(exception, "RemoveItemIOError", ErrorCategory.WriteError, path));
}
catch (UnauthorizedAccessException accessException)
@ -3925,7 +3925,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "CopyDirectoryInfoItemIOError", ErrorCategory.WriteError, file));
}
catch (UnauthorizedAccessException accessException)
@ -3956,7 +3956,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "CopyDirectoryInfoItemIOError", ErrorCategory.WriteError, childDir));
}
catch (UnauthorizedAccessException accessException)
@ -5254,7 +5254,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioError)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioError, "NormalizeRelativePathIOError", ErrorCategory.ReadError, path));
break;
}
@ -5898,7 +5898,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "MoveItemIOError", ErrorCategory.WriteError, path));
}
catch (UnauthorizedAccessException accessException)
@ -6011,7 +6011,7 @@ namespace Microsoft.PowerShell.Commands
(exception is ArgumentNullException) ||
(exception is IOException))
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "MoveFileInfoItemIOError", ErrorCategory.WriteError, destfile));
}
else
@ -6020,13 +6020,13 @@ namespace Microsoft.PowerShell.Commands
}
else
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "MoveFileInfoItemIOError", ErrorCategory.WriteError, file));
}
}
else
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "MoveFileInfoItemIOError", ErrorCategory.WriteError, file));
}
}
@ -6097,7 +6097,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "MoveDirectoryItemIOError", ErrorCategory.WriteError, directory));
}
}
@ -6259,7 +6259,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "GetPropertyIOError", ErrorCategory.ReadError, path));
}
catch (UnauthorizedAccessException accessException)
@ -6559,7 +6559,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "ClearPropertyIOError", ErrorCategory.WriteError, path));
}
}
@ -6739,7 +6739,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "GetContentReaderIOError", ErrorCategory.ReadError, path));
}
catch (System.Security.SecurityException securityException)
@ -6879,7 +6879,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "GetContentWriterIOError", ErrorCategory.WriteError, path));
}
catch (System.Security.SecurityException securityException)
@ -7045,7 +7045,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (IOException ioException)
{
// IOException contains specific message about the error occured and so no need for errordetails.
// IOException contains specific message about the error occurred and so no need for errordetails.
WriteError(new ErrorRecord(ioException, "ClearContentIOError", ErrorCategory.WriteError, path));
}
catch (UnauthorizedAccessException accessException)
@ -7177,7 +7177,7 @@ namespace Microsoft.PowerShell.Commands
/// </param>
/// <returns>If connection is established to the network resource
/// then success is returned or else the error code describing the
/// type of failure that occured while establishing
/// type of failure that occurred while establishing
/// the connection is returned.</returns>
[DllImport("mpr.dll", CharSet = CharSet.Unicode)]
internal static extern int WNetAddConnection2(ref NetResource netResource, byte[] password, string username, int flags);
@ -7197,7 +7197,7 @@ namespace Microsoft.PowerShell.Commands
/// if there are open files or jobs.
/// </param>
/// <returns>If connection is removed then success is returned or
/// else the error code describing the type of failure that occured while
/// else the error code describing the type of failure that occurred while
/// trying to remove the connection is returned.
/// </returns>
[DllImport("mpr.dll", CharSet = CharSet.Unicode)]