共用方式為


SPWeb.PresenceEnabled Property

Gets or sets a Boolean value that specifies whether inline presence information is enabled on the website.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property PresenceEnabled As Boolean
    Get
    Set
'Usage
Dim instance As SPWeb
Dim value As Boolean

value = instance.PresenceEnabled

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

Property Value

Type: System.Boolean
true if inline presence information is enabled; otherwise, false.

Remarks

The PresenceEnabled property gets or sets the raw presence value of the site, while the EffectivePresenceEnabled property returns the raw presence value combined with the global virtual server setting for presence. Use the PresenceEnabled property when creating administration tools, and use the EffectivePresenceEnabled property to display presence at run time.

See Also

Reference

SPWeb Class

SPWeb Members

Microsoft.SharePoint Namespace