共用方式為


SPUsageDefinition.Enabled Property

Gets or sets a value specifying whether usage logging has been enabled for this type.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overridable Property Enabled As Boolean
    Get
    Set
'Usage
Dim instance As SPUsageDefinition
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
public virtual bool Enabled { get; set; }

Property Value

Type: System.Boolean
Returns a Boolean indicating whether usage logging has been enabled.

See Also

Reference

SPUsageDefinition Class

SPUsageDefinition Members

Microsoft.SharePoint.Administration Namespace