Share via


InheritableProperty<TValueType> Class

Base class for inheritable properties on the PublishingWeb class. This class provides support pseudo-inheritance on selected SPWeb properties.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.Publishing.InheritableProperty<TValueType>
    Microsoft.SharePoint.Publishing.InheritableStringProperty

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public MustInherit Class InheritableProperty(Of TValueType)
'Usage
Dim instance As InheritableProperty(Of TValueType)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public abstract class InheritableProperty<TValueType>

Type Parameters

  • TValueType
    Base type of the inheritable property. Examples include values such as string, int, etc.

Remarks

This class can be used to simulate inheritable properties on instances of T:Microsoft.SharePoint.Publishing.PublishingWeb objects. For example, CustomMasterUrl is not a derived property on an SPWeb object. However, the CustomMasterUrl property on a PublishingWeb is a derived property. The InheritableProperty`1 class adds support that pushes properties down to subwebs that are set to inherit the parent Web property. This class also allows the hierarchy below a current Web to be reset.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

InheritableProperty<TValueType> Members

Microsoft.SharePoint.Publishing Namespace