InheritableProperty<TValueType> InheritableProperty<TValueType> InheritableProperty<TValueType> Class

Definition

Base class for inheritable properties on the PublishingWeb class.

generic <typename TValueType>
public ref class InheritableProperty abstract
public abstract class InheritableProperty<TValueType>
Public MustInherit Class InheritableProperty(Of TValueType)
Type Parameters
TValueType

Base type of the inheritable property. Examples include values such as string and int.

Inheritance
InheritableProperty<TValueType>InheritableProperty<TValueType>InheritableProperty<TValueType>
Derived

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.

Properties

InheritFlagPropertyName InheritFlagPropertyName InheritFlagPropertyName

Gets the name of the property flag to inherit.

IsInheriting IsInheriting IsInheriting

Indicates whether this property is inheriting its value from the parent PublishingWeb object.

Value Value Value

Gets the value of the property.

Methods

GetDirectValue(SPWeb) GetDirectValue(SPWeb) GetDirectValue(SPWeb)

Gets the property value directly from the PublishingWeb object.

SetDirectValue(TValueType, SPWeb) SetDirectValue(TValueType, SPWeb) SetDirectValue(TValueType, SPWeb)

Sets the property value directly to the PublishingWeb object.

SetInherit(Boolean, Boolean) SetInherit(Boolean, Boolean) SetInherit(Boolean, Boolean)

Sets the flag to indicate whether this property inherits its value from its parent site.

SetInherit(Boolean, Boolean, String, String) SetInherit(Boolean, Boolean, String, String) SetInherit(Boolean, Boolean, String, String)

Sets the flag to indicate whether this property inherits its value from its parent site.

SetValue(TValueType) SetValue(TValueType) SetValue(TValueType)

Sets the value of this property.

SetValue(TValueType, Boolean) SetValue(TValueType, Boolean) SetValue(TValueType, Boolean)

Set value of this property.

SetValue(TValueType, Boolean, String, String) SetValue(TValueType, Boolean, String, String) SetValue(TValueType, Boolean, String, String)

This member is reserved for internal use and is not intended to be used directly from your code.

Extension Methods

ToJson(Object) ToJson(Object) ToJson(Object)

Applies to