Skip to content

Commit d16795f

Browse files
committed
Fix link references
1 parent 472569c commit d16795f

4 files changed

Lines changed: 172 additions & 176 deletions

File tree

reference/5.1/Microsoft.PowerShell.Core/About/about_Classes.md

Lines changed: 40 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ which was published 86 years ago.
251251

252252
### Example 4 - Class with static members
253253

254-
The **BookList** class in this example builds on the **Book** class in example
255-
2. While the **BookList** class can't be marked static itself, the
256-
implementation only defines the **Books** static property and a set of static
257-
methods for managing that property.
254+
The **BookList** class in this example builds on the **Book** class in the
255+
previous example. While the **BookList** class can't be marked static itself,
256+
the implementation only defines the **Books** static property and a set of
257+
static methods for managing that property.
258258

259259
```powershell
260260
class BookList {
@@ -428,7 +428,7 @@ Properties are variables declared in the class scope. A property can be of any
428428
built-in type or an instance of another class. Classes can have zero or more
429429
properties. Classes don't have a maximum property count.
430430

431-
For more information, see [about_Classes_Properties][01].
431+
For more information, see [about_Classes_Properties][10].
432432

433433
## Class methods
434434

@@ -438,7 +438,7 @@ method doesn't return any output, it must have the **Void** output type. If a
438438
method doesn't explicitly define an output type, the method's output type is
439439
**Void**.
440440

441-
For more information, see [about_Classes_Methods][02].
441+
For more information, see [about_Classes_Methods][05].
442442

443443
## Class constructors
444444

@@ -447,7 +447,7 @@ moment of creating the instance of the class. Constructors have the same name
447447
as the class. Constructors might have parameters, to initialize the data
448448
members of the new object.
449449

450-
For more information, see [about_Classes_Constructors][03].
450+
For more information, see [about_Classes_Constructors][01].
451451

452452
## Hidden keyword
453453

@@ -476,11 +476,11 @@ Hidden class members are:
476476
> When you hide any constructor, the `new()` option is removed from
477477
> IntelliSense and completion results.
478478
479-
For more information about the keyword, see [about_Hidden][04]. For more
480-
information about hidden properties, see [about_Classes_Properties][05]. For
479+
For more information about the keyword, see [about_Hidden][12]. For more
480+
information about hidden properties, see [about_Classes_Properties][09]. For
481481
more information about hidden methods, see [about_Classes_Methods][06]. For
482482
more information about hidden constructors, see
483-
[about_Classes_Constructors][07].
483+
[about_Classes_Constructors][02].
484484

485485
## Static keyword
486486

@@ -494,9 +494,9 @@ available always. All static properties live for the entire session span.
494494
The `static` keyword only applies to class members, not a class itself.
495495

496496
For more information about static properties, see
497-
[about_Classes_Properties][08]. For more information about static methods, see
498-
[about_Classes_Methods][09]. For more information about static constructors,
499-
see [about_Classes_Constructors][10].
497+
[about_Classes_Properties][10]. For more information about static methods, see
498+
[about_Classes_Methods][07]. For more information about static constructors,
499+
see [about_Classes_Constructors][03].
500500

501501
## Inheritance in PowerShell classes
502502

@@ -512,8 +512,7 @@ inherits from an interface must implement that contract. When it does, the
512512
class can be used like any other class implementing that interface.
513513

514514
For more information about deriving classes that inherit from a base class or
515-
implement interfaces, see
516-
[about_Classes_Inheritance][11].
515+
implement interfaces, see [about_Classes_Inheritance][04].
517516

518517
## Export classes with type accelerators
519518

@@ -599,7 +598,7 @@ consistently import classes defined in nested modules or classes defined in
599598
scripts that are dot-sourced into the root module. Define classes that you want
600599
to be available to users outside of the module directly in the root module.
601600

602-
For more information about the `using` statement, see [about_Using][12].
601+
For more information about the `using` statement, see [about_Using][15].
603602

604603
## Load newly changed code during development
605604

@@ -626,7 +625,7 @@ parameters can't be used with class members. The **PSReference** class was
626625
designed to support COM objects. COM objects have cases where you need to pass
627626
a value in by reference.
628627

629-
For more information, see [PSReference Class][13].
628+
For more information, see [PSReference Class][16].
630629

631630
## Limitations
632631

@@ -740,30 +739,30 @@ workaround for those limitations, if any.
740739

741740
## See also
742741

743-
- [about_Classes_Constructors][03]
744-
- [about_Classes_Inheritance][11]
745-
- [about_Classes_Methods][02]
746-
- [about_Classes_Properties][01]
747-
- [about_Enum][14]
748-
- [about_Hidden][04]
749-
- [about_Language_Keywords][15]
750-
- [about_Methods][16]
751-
- [about_Using][12]
742+
- [about_Classes_Constructors][01]
743+
- [about_Classes_Inheritance][04]
744+
- [about_Classes_Methods][05]
745+
- [about_Classes_Properties][08]
746+
- [about_Enum][11]
747+
- [about_Hidden][12]
748+
- [about_Language_Keywords][13]
749+
- [about_Methods][14]
750+
- [about_Using][15]
752751

753752
<!-- link references -->
754-
[01]: about_Classes_Properties.md
755-
[02]: about_Classes_Methods.md
756-
[03]: about_Classes_Constructors.md
757-
[04]: about_Hidden.md
758-
[05]: about_Classes_Properties.md#hidden-properties
753+
[01]: about_Classes_Constructors.md
754+
[02]: about_Classes_Constructors.md#hidden-constructors
755+
[03]: about_Classes_Constructors.md#static-constructors
756+
[04]: about_Classes_Inheritance.md
757+
[05]: about_Classes_Methods.md
759758
[06]: about_Classes_Methods.md#hidden-methods
760-
[07]: about_Classes_Constructors.md#hidden-constructors
761-
[08]: about_Classes_Properties.md#static-properties
762-
[09]: about_Classes_Methods.md#static-methods
763-
[10]: about_Classes_Constructors.md#static-constructors
764-
[11]: about_Classes_Inheritance.md
765-
[12]: about_Using.md
766-
[13]: /dotnet/api/system.management.automation.psreference
767-
[14]: about_Enum.md
768-
[15]: about_language_keywords.md
769-
[16]: about_methods.md
759+
[07]: about_Classes_Methods.md#static-methods
760+
[08]: about_Classes_Properties.md
761+
[09]: about_Classes_Properties.md#hidden-properties
762+
[10]: about_Classes_Properties.md#static-properties
763+
[11]: about_Enum.md
764+
[12]: about_Hidden.md
765+
[13]: about_language_keywords.md
766+
[14]: about_methods.md
767+
[15]: about_Using.md
768+
[16]: xref:System.Management.Automation.PSReference

reference/7.4/Microsoft.PowerShell.Core/About/about_Classes.md

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ which was published 86 years ago.
251251

252252
### Example 4 - Class with static members
253253

254-
The **BookList** class in this example builds on the **Book** class in example
255-
2. While the **BookList** class can't be marked static itself, the
256-
implementation only defines the **Books** static property and a set of static
257-
methods for managing that property.
254+
The **BookList** class in this example builds on the **Book** class in the
255+
previous example. While the **BookList** class can't be marked static itself,
256+
the implementation only defines the **Books** static property and a set of
257+
static methods for managing that property.
258258

259259
```powershell
260260
class BookList {
@@ -485,7 +485,7 @@ Properties are variables declared in the class scope. A property can be of any
485485
built-in type or an instance of another class. Classes can have zero or more
486486
properties. Classes don't have a maximum property count.
487487

488-
For more information, see [about_Classes_Properties][01].
488+
For more information, see [about_Classes_Properties][09].
489489

490490
## Class methods
491491

@@ -495,7 +495,7 @@ method doesn't return any output, it must have the **Void** output type. If a
495495
method doesn't explicitly define an output type, the method's output type is
496496
**Void**.
497497

498-
For more information, see [about_Classes_Methods][02].
498+
For more information, see [about_Classes_Methods][06].
499499

500500
## Class constructors
501501

@@ -504,7 +504,7 @@ moment of creating the instance of the class. Constructors have the same name
504504
as the class. Constructors might have parameters, to initialize the data
505505
members of the new object.
506506

507-
For more information, see [about_Classes_Constructors][03].
507+
For more information, see [about_Classes_Constructors][02].
508508

509509
## Hidden keyword
510510

@@ -533,11 +533,11 @@ Hidden class members are:
533533
> When you hide any constructor, the `new()` option is removed from
534534
> IntelliSense and completion results.
535535
536-
For more information about the keyword, see [about_Hidden][04]. For more
537-
information about hidden properties, see [about_Classes_Properties][05]. For
538-
more information about hidden methods, see [about_Classes_Methods][06]. For
536+
For more information about the keyword, see [about_Hidden][13]. For more
537+
information about hidden properties, see [about_Classes_Properties][10]. For
538+
more information about hidden methods, see [about_Classes_Methods][07]. For
539539
more information about hidden constructors, see
540-
[about_Classes_Constructors][07].
540+
[about_Classes_Constructors][03].
541541

542542
## Static keyword
543543

@@ -551,9 +551,9 @@ available always. All static properties live for the entire session span.
551551
The `static` keyword only applies to class members, not a class itself.
552552

553553
For more information about static properties, see
554-
[about_Classes_Properties][08]. For more information about static methods, see
555-
[about_Classes_Methods][09]. For more information about static constructors,
556-
see [about_Classes_Constructors][10].
554+
[about_Classes_Properties][11]. For more information about static methods, see
555+
[about_Classes_Methods][08]. For more information about static constructors,
556+
see [about_Classes_Constructors][04].
557557

558558
## Inheritance in PowerShell classes
559559

@@ -569,8 +569,7 @@ inherits from an interface must implement that contract. When it does, the
569569
class can be used like any other class implementing that interface.
570570

571571
For more information about deriving classes that inherit from a base class or
572-
implement interfaces, see
573-
[about_Classes_Inheritance][11].
572+
implement interfaces, see [about_Classes_Inheritance][05].
574573

575574
## NoRunspaceAffinity attribute
576575

@@ -592,8 +591,7 @@ thread and the thread's current session state.
592591
The attribute was added in PowerShell 7.4.
593592

594593
For an illustration of the difference in behavior for classes with and without
595-
the `NoRunspaceAffinity` attribute, see
596-
[Example 4](#example-4---class-definition-with-and-without-runspace-affinity).
594+
the `NoRunspaceAffinity` attribute, see [Example 5][01].
597595

598596
## Export classes with type accelerators
599597

@@ -679,7 +677,7 @@ consistently import classes defined in nested modules or classes defined in
679677
scripts that are dot-sourced into the root module. Define classes that you want
680678
to be available to users outside of the module directly in the root module.
681679

682-
For more information about the `using` statement, see [about_Using][12].
680+
For more information about the `using` statement, see [about_Using][16].
683681

684682
## Load newly changed code during development
685683

@@ -706,7 +704,7 @@ parameters can't be used with class members. The **PSReference** class was
706704
designed to support COM objects. COM objects have cases where you need to pass
707705
a value in by reference.
708706

709-
For more information, see [PSReference Class][13].
707+
For more information, see [PSReference Class][17].
710708

711709
## Limitations
712710

@@ -826,30 +824,31 @@ workaround for those limitations, if any.
826824

827825
## See also
828826

829-
- [about_Classes_Constructors][03]
830-
- [about_Classes_Inheritance][11]
831-
- [about_Classes_Methods][02]
832-
- [about_Classes_Properties][01]
833-
- [about_Enum][14]
834-
- [about_Hidden][04]
835-
- [about_Language_Keywords][15]
836-
- [about_Methods][16]
837-
- [about_Using][12]
827+
- [about_Classes_Constructors][02]
828+
- [about_Classes_Inheritance][05]
829+
- [about_Classes_Methods][06]
830+
- [about_Classes_Properties][09]
831+
- [about_Enum][12]
832+
- [about_Hidden][13]
833+
- [about_Language_Keywords][14]
834+
- [about_Methods][15]
835+
- [about_Using][16]
838836

839837
<!-- link references -->
840-
[01]: about_Classes_Properties.md
841-
[02]: about_Classes_Methods.md
842-
[03]: about_Classes_Constructors.md
843-
[04]: about_Hidden.md
844-
[05]: about_Classes_Properties.md#hidden-properties
845-
[06]: about_Classes_Methods.md#hidden-methods
846-
[07]: about_Classes_Constructors.md#hidden-constructors
847-
[08]: about_Classes_Properties.md#static-properties
848-
[09]: about_Classes_Methods.md#static-methods
849-
[10]: about_Classes_Constructors.md#static-constructors
850-
[11]: about_Classes_Inheritance.md
851-
[12]: about_Using.md
852-
[13]: /dotnet/api/system.management.automation.psreference
853-
[14]: about_Enum.md
854-
[15]: about_language_keywords.md
855-
[16]: about_methods.md
838+
[01]: #example-5---class-definition-with-and-without-runspace-affinity
839+
[02]: about_Classes_Constructors.md
840+
[03]: about_Classes_Constructors.md#hidden-constructors
841+
[04]: about_Classes_Constructors.md#static-constructors
842+
[05]: about_Classes_Inheritance.md
843+
[06]: about_Classes_Methods.md
844+
[07]: about_Classes_Methods.md#hidden-methods
845+
[08]: about_Classes_Methods.md#static-methods
846+
[09]: about_Classes_Properties.md
847+
[10]: about_Classes_Properties.md#hidden-properties
848+
[11]: about_Classes_Properties.md#static-properties
849+
[12]: about_Enum.md
850+
[13]: about_Hidden.md
851+
[14]: about_language_keywords.md
852+
[15]: about_methods.md
853+
[16]: about_Using.md
854+
[17]: xref:System.Management.Automation.PSReference

0 commit comments

Comments
 (0)