다음을 통해 공유


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>