InheritableProperty<TValueType>.SetInherit method (Boolean, Boolean, String, String)

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

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

Syntax

'Declaration
Public Function SetInherit ( _
    inherit As Boolean, _
    forceAllSubWebInherit As Boolean, _
    successUrl As String, _
    failureUrl As String _
) As LongRunningOperationJob
'Usage
Dim instance As InheritableProperty
Dim inherit As Boolean
Dim forceAllSubWebInherit As Boolean
Dim successUrl As String
Dim failureUrl As String
Dim returnValue As LongRunningOperationJob

returnValue = instance.SetInherit(inherit, _
    forceAllSubWebInherit, successUrl, _
    failureUrl)
public LongRunningOperationJob SetInherit(
    bool inherit,
    bool forceAllSubWebInherit,
    string successUrl,
    string failureUrl
)

Parameters

  • forceAllSubWebInherit
    Type: System.Boolean

    Forces all subsites to inherit this value, even if the property on a subsite currently does not inherit.

  • successUrl
    Type: System.String

    A string that specifies the Url indicating success.

  • failureUrl
    Type: System.String

    A string that specifies the Url indicating failure.

Return value

Type: LongRunningOperationJob

See also

Reference

InheritableProperty<TValueType> class

InheritableProperty<TValueType> members

SetInherit overload

Microsoft.SharePoint.Publishing namespace

InheritableProperty<TValueType>