共用方式為


SPSite.ShareByLinkEnabled property

屬性會指出是否該使用者將能夠共用可以不需登入存取的文件的連結

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

Syntax

'宣告
Public Property ShareByLinkEnabled As Boolean
    Get
    Set
'用途
Dim instance As SPSite
Dim value As Boolean

value = instance.ShareByLinkEnabled

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

Property value

Type: System.Boolean
當使用者將能夠共用可以不需登入存取的文件的連結,則為 true。

請參閱

參照

SPSite class

SPSite members

Microsoft.SharePoint namespace