Skip to content

Commit

Permalink
Add assembly syntax for using (MicrosoftDocs#8863)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler authored May 25, 2022
1 parent f1e8c27 commit 960980e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes the keywords in the PowerShell scripting language.
Locale: en-US
ms.date: 06/25/2021
ms.date: 05/25/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_keywords?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Language Keywords
Expand Down Expand Up @@ -547,21 +547,31 @@ do {<statement list>} until (<condition>)

## `using`

Allows indicating which namespaces are used in the session. Classes and members
require less typing to mention them. You can also include classes from modules.
Allows you to indicate which namespaces are used in the session. Type names,
classes, and members require less typing to reference them. You can also
include classes from modules.

Syntax #1:
Namespace syntax:

```Syntax
using namespace <.Net-framework-namespace>
```

Syntax #2:
Module syntax:

```Syntax
using module <module-name>
```

Assembly syntax:

```Syntax
using assembly <.NET-assembly-path>
using assembly <.NET-framework-namespace>
```

For more information, see [about_Using](about_Using.md).

## `while`

The `while` statement is a looping construct where the condition is tested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes the keywords in the PowerShell scripting language.
Locale: en-US
ms.date: 03/07/2022
ms.date: 05/25/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_keywords?view=powershell-7&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Language Keywords
Expand Down Expand Up @@ -552,21 +552,30 @@ do {<statement list>} until (<condition>)

## `using`

Allows indicating which namespaces are used in the session. Classes and members
require less typing to mention them. You can also include classes from modules.
Allows you to indicate which namespaces are used in the session. Type names,
classes, and members require less typing to reference them. You can also
include classes from modules.

Syntax #1:
Namespace syntax:

```Syntax
using namespace <.Net-framework-namespace>
using namespace <.Net-namespace>
```

Syntax #2:
Module syntax:

```Syntax
using module <module-name>
```

Assembly syntax:

```Syntax
using assembly <.NET-assembly-path>
```

For more information, see [about_Using](about_Using.md).

## `while`

The `while` statement is a looping construct where the condition is tested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes the keywords in the PowerShell scripting language.
Locale: en-US
ms.date: 03/07/2022
ms.date: 05/25/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_keywords?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Language Keywords
Expand Down Expand Up @@ -552,21 +552,30 @@ do {<statement list>} until (<condition>)

## `using`

Allows indicating which namespaces are used in the session. Classes and members
require less typing to mention them. You can also include classes from modules.
Allows you to indicate which namespaces are used in the session. Type names,
classes, and members require less typing to reference them. You can also
include classes from modules.

Syntax #1:
Namespace syntax:

```Syntax
using namespace <.Net-framework-namespace>
using namespace <.Net-namespace>
```

Syntax #2:
Module syntax:

```Syntax
using module <module-name>
```

Assembly syntax:

```Syntax
using assembly <.NET-assembly-path>
```

For more information, see [about_Using](about_Using.md).

## `while`

The `while` statement is a looping construct where the condition is tested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Describes the keywords in the PowerShell scripting language.
Locale: en-US
ms.date: 03/07/2022
ms.date: 05/25/2022
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_keywords?view=powershell-7.3&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Language Keywords
Expand Down Expand Up @@ -552,21 +552,30 @@ do {<statement list>} until (<condition>)

## `using`

Allows indicating which namespaces are used in the session. Classes and members
require less typing to mention them. You can also include classes from modules.
Allows you to indicate which namespaces are used in the session. Type names,
classes, and members require less typing to reference them. You can also
include classes from modules.

Syntax #1:
Namespace syntax:

```Syntax
using namespace <.Net-framework-namespace>
using namespace <.Net-namespace>
```

Syntax #2:
Module syntax:

```Syntax
using module <module-name>
```

Assembly syntax:

```Syntax
using assembly <.NET-assembly-path>
```

For more information, see [about_Using](about_Using.md).

## `while`

The `while` statement is a looping construct where the condition is tested
Expand Down

0 comments on commit 960980e

Please sign in to comment.