Compartir a través de


(Boolean, Boolean) del método InheritableProperty<TValueType>.SetInherit

Establece la marca que indica si esta propiedad hereda su valor de su sitio primario.

Espacio de nombres:  Microsoft.SharePoint.Publishing
Ensamblado:  Microsoft.SharePoint.Publishing (en Microsoft.SharePoint.Publishing.dll)

Sintaxis

'Declaración
Public Function SetInherit ( _
    inherit As Boolean, _
    forceAllSubWebInherit As Boolean _
) As LongRunningOperationJob
'Uso
Dim instance As InheritableProperty
Dim inherit As Boolean
Dim forceAllSubWebInherit As Boolean
Dim returnValue As LongRunningOperationJob

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

Parámetros

  • inherit
    Tipo: System.Boolean

    true a heredar; en caso contrario, false.

  • forceAllSubWebInherit
    Tipo: System.Boolean

    Obliga a todos los subsitios hereden este valor, aunque la propiedad en un subsitio que actualmente no se hereda.

Valor devuelto

Tipo: LongRunningOperationJob
Un indicador que indica si esta propiedad hereda su valor de su sitio primario.

Comentarios

Este método establece la herencia de un objeto PublishingWeb . El usuario actual debe tener permisos para establecer el valor de herencia para el objeto de PublishingWeb actual. Si hay objetos de PublishingWeb secundarios establecida para heredar, se actualizan con los nuevos valores independientemente de si el usuario actual tiene permisos para modificar los PublishingWeb los objetos secundarios.

Si forceAllSubWebInherit se establece en True, el usuario actual debe tener permisos para modificar cualquier PublishingWeb los objetos secundarios que están marcados como la herencia. Al dividir la herencia, se mantiene el valor heredado actualmente.

Vea también

Referencia

clase InheritableProperty<TValueType>

Miembros InheritableProperty<TValueType>

Sobrecarga SetInherit

Espacio de nombres Microsoft.SharePoint.Publishing

InheritableProperty<TValueType>