Skip to content

Commit 4be93c8

Browse files
committed
Fix OutputType attribute placement in New-SqlDscDataFile and New-SqlDscFileGroup functions for consistency
1 parent c0d43ba commit 4be93c8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source/Public/New-SqlDscDataFile.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
Specifies the logical name of the DataFile.
1616
1717
.PARAMETER FileName
18-
Specifies the physical path and filename for the DataFile. For database
19-
snapshots, this should point to a sparse file location (typically with
20-
.ss extension). For regular databases, this should be the data file
21-
path (typically with .mdf or .ndf extension).
18+
Specifies the physical path and filename for the DataFile. For database snapshots,
19+
this should point to a sparse file location (typically with an .ss extension).
20+
For regular databases, this should be the data file path (typically with .mdf
21+
or .ndf extension).
2222
2323
.PARAMETER Force
2424
Specifies that the DataFile object should be created without prompting for
@@ -51,8 +51,8 @@
5151
#>
5252
function New-SqlDscDataFile
5353
{
54-
[OutputType([Microsoft.SqlServer.Management.Smo.DataFile])]
5554
[CmdletBinding(DefaultParameterSetName = 'Standalone', SupportsShouldProcess = $true, ConfirmImpact = 'High')]
55+
[OutputType([Microsoft.SqlServer.Management.Smo.DataFile])]
5656
param
5757
(
5858
[Parameter(Mandatory = $true, ParameterSetName = 'WithFileGroup', ValueFromPipeline = $true)]

source/Public/New-SqlDscFileGroup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
#>
4848
function New-SqlDscFileGroup
4949
{
50-
[OutputType([Microsoft.SqlServer.Management.Smo.FileGroup])]
5150
[CmdletBinding(DefaultParameterSetName = 'Standalone', SupportsShouldProcess = $true, ConfirmImpact = 'High')]
51+
[OutputType([Microsoft.SqlServer.Management.Smo.FileGroup])]
5252
param
5353
(
5454
[Parameter(Mandatory = $true, ValueFromPipeline = $true, ParameterSetName = 'WithDatabase')]

0 commit comments

Comments
 (0)