This may be a silly question, but I have not used PowerShell that much, so I honestly don't know. I've been trying to find a way to name the comment blocks, but it is really escaping me right now. Is it even possible to name the comment blocks?
Right now for PS I am using regions, like the example below, but I'd like to replace them with properly named comment blocks, if possible.
#region Mount
# Mount the VHD.
# The Mount-VHD cmdlet mounts one or more virtual hard disks.
# -NoDriveLetter
# Specifies that the virtual hard disk is to be mounted without assigning drive letters to the volumes contained within the virtual hard disk.
# -ReadOnly
# Specifies that the virtual hard disk is to be mounted in read-only mode.
#endregion
Mount-VHD -Path $Path
Question
Guest
Hey,
This may be a silly question, but I have not used PowerShell that much, so I honestly don't know. I've been trying to find a way to name the comment blocks, but it is really escaping me right now. Is it even possible to name the comment blocks?
In C# one can do it like:
Right now for PS I am using regions, like the example below, but I'd like to replace them with properly named comment blocks, if possible.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts