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
inherit
Type: System.Booleantrue to inherit; otherwise, false.
forceAllSubWebInherit
Type: System.BooleanForces all subsites to inherit this value, even if the property on a subsite currently does not inherit.
successUrl
Type: System.StringA string that specifies the Url indicating success.
failureUrl
Type: System.StringA string that specifies the Url indicating failure.
Return Value
Type: LongRunningOperationJob
See Also
Reference
InheritableProperty<TValueType> Class
InheritableProperty<TValueType> Members