SPWebApplicationBuilder.UseSecureSocketsLayer property
取得或設定 Boolean 值,指定新網際網路資訊服務 (IIS) 網站架設的 Web 應用程式是否設定為使用 SSL。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property UseSecureSocketsLayer As Boolean
Get
Set
'用途
Dim instance As SPWebApplicationBuilder
Dim value As Boolean
value = instance.UseSecureSocketsLayer
instance.UseSecureSocketsLayer = value
public bool UseSecureSocketsLayer { get; set; }
Property value
Type: System.Boolean
若要設定的 Iis 網站,以使用 SSL ; true否則,請false。預設值為false。
備註
UseSecureSocketsLayer屬性僅限設定的 IIS 繫結。SSL 憑證必須仍套用至每個 Iis 網站以手動方式。