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 @@ -611,7 +611,7 @@ Param
)
```

### Dynamic Parameters
## Dynamic Parameters

Dynamic parameters are parameters of a cmdlet, function, or script that are
available only under certain conditions.
Expand Down Expand Up @@ -690,7 +690,7 @@ For more information, see "RuntimeDefinedParameter Class" in the MSDN
(Microsoft Developer Network) library at
[RuntimeDefinedParameter](/dotnet/api/system.management.automation.runtimedefinedparameter)

### Switch Parameters
## Switch Parameters

Switch parameters are parameters with no parameter value. They are effective
only when they are used and have only one effect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ Param
)
```

### Dynamic Parameters
## Dynamic Parameters

Dynamic parameters are parameters of a cmdlet, function, or script that are
available only under certain conditions.
Expand Down Expand Up @@ -690,7 +690,7 @@ For more information, see "RuntimeDefinedParameter Class" in the MSDN
(Microsoft Developer Network) library at
[RuntimeDefinedParameter](/dotnet/api/system.management.automation.runtimedefinedparameter)

### Switch Parameters
## Switch Parameters

Switch parameters are parameters with no parameter value. They are effective
only when they are used and have only one effect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ Param
)
```

### Dynamic Parameters
## Dynamic Parameters

Dynamic parameters are parameters of a cmdlet, function, or script that are
available only under certain conditions.
Expand Down Expand Up @@ -690,7 +690,7 @@ For more information, see "RuntimeDefinedParameter Class" in the MSDN
(Microsoft Developer Network) library at
[RuntimeDefinedParameter](/dotnet/api/system.management.automation.runtimedefinedparameter)

### Switch Parameters
## Switch Parameters

Switch parameters are parameters with no parameter value. They are effective
only when they are used and have only one effect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ Param
)
```

## ValidateDrive Validation Attribute
### ValidateDrive Validation Attribute

The ValidateDrive attribute specifies that the parameter value must represent
the path, that is referring to allowed drives only. PowerShell generates
Expand All @@ -628,7 +628,7 @@ Param
)
```

## ValidateUserDrive Validation Attribute
### ValidateUserDrive Validation Attribute

The ValidateUserDrive attribute specifies that the parameter value
must represent the path, that is referring to `User` drive.
Expand All @@ -649,7 +649,7 @@ Param
)
```

### Dynamic Parameters
## Dynamic Parameters

Dynamic parameters are parameters of a cmdlet, function, or script that are
available only under certain conditions.
Expand Down Expand Up @@ -728,7 +728,7 @@ For more information, see "RuntimeDefinedParameter Class" in the MSDN
(Microsoft Developer Network) library at
[RuntimeDefinedParameter](/dotnet/api/system.management.automation.runtimedefinedparameter)

### Switch Parameters
## Switch Parameters

Switch parameters are parameters with no parameter value. They are effective
only when they are used and have only one effect.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ Param
)
```

## ValidateDrive Validation Attribute
### ValidateDrive Validation Attribute

The ValidateDrive attribute specifies that the parameter value must represent
the path, that is referring to allowed drives only. PowerShell generates
Expand All @@ -628,7 +628,7 @@ Param
)
```

## ValidateUserDrive Validation Attribute
### ValidateUserDrive Validation Attribute

The ValidateUserDrive attribute specifies that the parameter value
must represent the path, that is referring to `User` drive.
Expand All @@ -649,7 +649,7 @@ Param
)
```

### Dynamic Parameters
## Dynamic Parameters

Dynamic parameters are parameters of a cmdlet, function, or script that are
available only under certain conditions.
Expand Down Expand Up @@ -728,7 +728,7 @@ For more information, see "RuntimeDefinedParameter Class" in the MSDN
(Microsoft Developer Network) library at
[RuntimeDefinedParameter](/dotnet/api/system.management.automation.runtimedefinedparameter)

### Switch Parameters
## Switch Parameters

Switch parameters are parameters with no parameter value. They are effective
only when they are used and have only one effect.
Expand Down