Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ public sealed class WriteEventLogCommand : PSCmdlet
public string ComputerName { get; set; } = ".";

#endregion Parameters
# region private
#region private

private void WriteNonTerminatingError(Exception exception, string errorId, string errorMessage,
ErrorCategory category)
Expand Down Expand Up @@ -957,7 +957,7 @@ public Int64 MaximumSize
private bool _maxkbSpecified = false;
#endregion Parameters

# region private
#region private
private void WriteNonTerminatingError(Exception exception, string resourceId, string errorId,
ErrorCategory category, string _logName, string _compName)
{
Expand Down Expand Up @@ -1075,7 +1075,7 @@ protected override
}
}
}
# endregion override
#endregion override

}
#endregion LimitEventLogCommand
Expand Down Expand Up @@ -1137,11 +1137,11 @@ protected override
WriteError(er);
}
}
# endregion override
#endregion override
}
#endregion ShowEventLogCommand

# region NewEventLogCommand
#region NewEventLogCommand
/// <summary>
/// This cmdlet creates the new event log .This cmdlet can also be used to
/// configure a new source for writing entries to an event log on the local
Expand All @@ -1165,7 +1165,7 @@ protected override
[Cmdlet(VerbsCommon.New, "EventLog", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=135235", RemotingCapability = RemotingCapability.SupportedByCommand)]
public class NewEventLogCommand : PSCmdlet
{
# region Parameter
#region Parameter
/// <summary>
/// The following is the definition of the input parameter "CategoryResourceFile".
/// Specifies the path of the resource file that contains category strings for
Expand Down Expand Up @@ -1230,19 +1230,19 @@ public class NewEventLogCommand : PSCmdlet
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public String[] Source { get; set; }

# endregion Parameter
#endregion Parameter

# region private
#region private
private void WriteNonTerminatingError(Exception exception, string resourceId, string errorId,
ErrorCategory category, string _logName, string _compName, string _source, string _resourceFile)
{
Exception ex = new Exception(StringUtil.Format(resourceId, _logName, _compName, _source, _resourceFile), exception);
WriteError(new ErrorRecord(ex, errorId, category, null));
}

# endregion private
#endregion private

# region override
#region override
/// <summary>
/// BeginProcessing method.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ internal void Stop()
[OutputType(typeof(SelectXmlInfo))]
public class SelectXmlCommand : PSCmdlet
{
# region parameters
#region parameters
/// <summary>
/// Specifies the path which contains the xml files. The default is the current user directory.
/// </summary>
Expand Down Expand Up @@ -876,9 +876,9 @@ public String[] LiteralPath
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public Hashtable Namespace { get; set; }

# endregion parameters
#endregion parameters

# region private
#region private

private void WriteResults(XmlNodeList foundXmlNodes, string filePath)
{
Expand Down Expand Up @@ -1006,7 +1006,7 @@ private XmlNamespaceManager AddNameSpaceTable(string parametersetname, XmlDocume
return xmlns;
}

# endregion private
#endregion private

#region override

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public sealed class NewObjectCommand : PSCmdlet
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public IDictionary Property { get; set; }

# endregion parameters
#endregion parameters

#region private
private object CallConstructor(Type type, ConstructorInfo[] constructors, object[] args)
Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.WSMan.Management/CredSSP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ private void UpdateGPORegistrySettings(string applicationname, string[] delegate
[Cmdlet(VerbsCommon.Get, "WSManCredSSP", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=141443")]
public class GetWSManCredSSPCommand : PSCmdlet, IDisposable
{
# region private
#region private
WSManHelper helper = null;
/// <summary>
/// method to get the values.
Expand Down Expand Up @@ -814,9 +814,9 @@ private string GetDelegateSettings(string applicationname)

return result;
}
# endregion private
#endregion private

# region overrides
#region overrides
/// <summary>
/// Method to begin processing.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Microsoft.WSMan.Management/WSManConnections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ protected override void BeginProcessing()
}//end class
#endregion

# region Disconnect-WSMAN
#region Disconnect-WSMAN
/// <summary>
/// The following is the definition of the input parameter "ComputerName".
/// Executes the management operation on the specified computer(s). The default
Expand Down
4 changes: 2 additions & 2 deletions src/Microsoft.WSMan.Management/WSManInstance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,8 @@ private void ReturnEnumeration(IWSManEx wsmanObject, IWSManResourceLocator wsman
WriteError(er);
}
}
# endregion private
# region override
#endregion private
#region override
/// <summary>
/// ProcessRecord method.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ namespace System.Management.Automation.ComInterop
/// </summary>
internal class ComParamDesc
{
# region private fields
#region private fields

private readonly VarEnum _vt;
private readonly string _name;

# endregion
#endregion

# region ctor
#region ctor

/// <summary>
/// Creates a representation for the parameter of a COM method
Expand Down Expand Up @@ -122,9 +122,9 @@ public override string ToString()
return result.ToString();
}

# endregion
#endregion

# region properties
#region properties

public bool IsOut { get; }

Expand All @@ -141,7 +141,7 @@ public override string ToString()
/// </summary>
internal object DefaultValue { get; }

# endregion
#endregion
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ private void FlushPendingOutput()

#endregion Line-oriented interaction

# region Dialog-oriented Interaction
#region Dialog-oriented Interaction

/// <summary>
/// Constructs a 'dialog' where the user is presented with a number of fields for which to supply values.
Expand Down
2 changes: 1 addition & 1 deletion test/tools/OpenCover/OpenCover.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Get-ClassCoverageData([xml.xmlelement]$element)
return $classes
}

# region FileCoverage
#region FileCoverage

class FileCoverage
{
Expand Down