共用方式為


SPContext.HasDesignTimeContentType Property

Gets a Boolean value that indicates whether the list item in the current context is associated with a design-time content type.

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

Syntax

'Declaration
Public ReadOnly Property HasDesignTimeContentType As Boolean
    Get
'Usage
Dim instance As SPContext
Dim value As Boolean

value = instance.HasDesignTimeContentType
public bool HasDesignTimeContentType { get; }

Property Value

Type: System.Boolean
true if the item is associated with a design-time content type; otherwise false.

See Also

Reference

SPContext Class

SPContext Members

Microsoft.SharePoint Namespace