次の方法で共有


SPWebApplicationBuilder.UseSecureSocketsLayer property

Gets or sets a Boolean value that specifies whether the new Internet Information Services (IIS) Web site that hosts the Web application is configured to use SSL.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property UseSecureSocketsLayer As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplicationBuilder
Dim value As Boolean

value = instance.UseSecureSocketsLayer

instance.UseSecureSocketsLayer = value
public bool UseSecureSocketsLayer { get; set; }

Property value

Type: System.Boolean
true to configure the IIS Web site to use SSL; otherwise, false. The default value is false.

Remarks

The UseSecureSocketsLayer property only configures the IIS bindings. The SSL certificates must still be applied to each IIS Web site manually.

See also

Reference

SPWebApplicationBuilder class

SPWebApplicationBuilder members

Microsoft.SharePoint.Administration namespace