New-SPWebApplicationAppDomain

建立 AppDomain 項目。

Syntax

New-SPWebApplicationAppDomain
   [-AppDomain] <String>
   -WebApplication <SPWebApplicationPipeBind>
   [-AssignmentCollection <SPAssignmentCollection>]
   [-Confirm]
   [-Port <Int32>]
   [-SecureSocketsLayer]
   [-WhatIf]
   [-Zone <SPUrlZone>]
   [<CommonParameters>]

Description

New-SPWebApplicationAppDomain Cmdlet 可用於建立 AppDomain 項目。 如果您指定埠,Cmdlet 會將埠系結新增至網際網路資訊服務 (IIS) 網站,對應至 Web 應用程式/區域組合。

範例

------------------範例 1-----------------------

New-SPWebApplicationAppDomain -AppDomain contosoapps.com -WebApplication https://www.contoso.com

為預設區域中指定 Web 應用程式的 SharePoint 應用程式建立新的應用程式網域。

------------------範例 2-----------------------

New-SPWebApplicationAppDomain -AppDomain contosoapps.com -WebApplication https://www.contoso.com -Zone Internet -Port 10000

對於網際網路區域中在連接埠 10000 指定的 Web 應用程式,建立 SharePoint 應用程式 新的應用程式網域。

參數

-AppDomain

指定應用程式網域的 URI。

Type:String
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-AssignmentCollection

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.

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.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

執行 Cmdlet 之前提示您確認。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Port

Specifies the IIS port number to which the app domain will be assigned. If no value is specified, the same port used by the web application for the zone is applied.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-SecureSocketsLayer

指定應用程式網域將使用安全通訊端階層 (SSL) 安全性。 若未指定任何值,將不使用 SSL 安全性。

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WebApplication

對於設定應用程式網域的 Web 應用程式指定 GUID、URI 或名稱。

Type:SPWebApplicationPipeBind
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

顯示執行 Cmdlet 時會發生什麼情況。 未執行 Cmdlet。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Zone

指定將指派應用程式網域的安全性區域。

  • 預設

  • 內部網路

  • 網際網路

  • 外部網路

  • 自訂

若未指定任何值,將套用預設值。

Type:SPUrlZone
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

輸入

System.String

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

輸出

系統.物件