InheritableProperty<TValueType>.SetInherit InheritableProperty<TValueType>.SetInherit InheritableProperty<TValueType>.SetInherit Method

Definition

Overloads

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.

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

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

public:
 Microsoft::SharePoint::Publishing::Internal::LongRunningOperationJob ^ SetInherit(bool inherit, bool forceAllSubWebInherit);
public Microsoft.SharePoint.Publishing.Internal.LongRunningOperationJob SetInherit (bool inherit, bool forceAllSubWebInherit);
Public Function SetInherit (inherit As Boolean, forceAllSubWebInherit As Boolean) As LongRunningOperationJob
Parameters
inherit
Boolean Boolean Boolean

true to inherit; otherwise, false.

forceAllSubWebInherit
Boolean Boolean Boolean

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

Returns

A flag indicating whether this property inherits its value from its parent site.

Remarks

This method sets the inheritance of a PublishingWeb object. The current user must have permissions to set the inheritance value for the current PublishingWeb object. If there are child PublishingWeb objects set to inherit, they are updated with the new values regardless of whether the current user has permissions to modify the child PublishingWeb objects.

If forceAllSubWebInherit is set to True, the current user must have permissions to modify any child PublishingWeb objects that are marked as inheriting. When breaking inheritance, the currently inherited value is kept.

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.

public:
 Microsoft::SharePoint::Publishing::Internal::LongRunningOperationJob ^ SetInherit(bool inherit, bool forceAllSubWebInherit, System::String ^ successUrl, System::String ^ failureUrl);
public Microsoft.SharePoint.Publishing.Internal.LongRunningOperationJob SetInherit (bool inherit, bool forceAllSubWebInherit, string successUrl, string failureUrl);
Public Function SetInherit (inherit As Boolean, forceAllSubWebInherit As Boolean, successUrl As String, failureUrl As String) As LongRunningOperationJob
Parameters
inherit
Boolean Boolean Boolean

true to inherit; otherwise, false.

forceAllSubWebInherit
Boolean Boolean Boolean

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

successUrl
String String String

A string that specifies the Url indicating success.

failureUrl
String String String

A string that specifies the Url indicating failure.

Returns

Applies to