InheritableProperty<TValueType> class

Base class for inheritable properties on the PublishingWeb class.

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 and int.

Remarks

Used to simulate inheritable properties on instances of 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