Skip to content

Commit c4fb966

Browse files
authored
Merge pull request MicrosoftDocs#860 from tseward/patch-494
Update Remove-SPEnterpriseSearchCrawlRule.md
2 parents ae02221 + 2f83829 commit c4fb966

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Remove-SPEnterpriseSearchCrawlRule.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ For permissions and the most current information about Windows PowerShell for Sh
2929

3030
### ------------------EXAMPLE------------------
3131
```
32-
C:\PS>$searchApp = Get-SPEnterpriseSearchServiceApplication mySearchServiceApp
33-
Remove-SPEnterpriseSearchCrawlRule -Identity http://mySPSite
34-
-SearchApplication $searchApp
32+
PS C:\>$searchApp = Get-SPEnterpriseSearchServiceApplication mySearchServiceApp
33+
PS C:\>Remove-SPEnterpriseSearchCrawlRule -Identity http://mySPSite -SearchApplication $searchApp
3534
```
3635

3736
This example removes a crawl rule pertaining to the path http://mySPSite from the mySearchServiceApp search service application.
@@ -58,13 +57,9 @@ Accept wildcard characters: False
5857
```
5958
6059
### -AssignmentCollection
61-
Manages objects for the purpose of proper disposal.
62-
Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management.
63-
Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory.
64-
When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.
60+
Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.
6561
66-
When the Global parameter is used, all objects are contained in the global store.
67-
If objects are not immediately used, or disposed of by using the `Stop-SPAssignment` command, an out-of-memory scenario can occur.
62+
When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.
6863
6964
```yaml
7065
Type: SPAssignmentCollection

0 commit comments

Comments
 (0)