ContentType.Update - Méthode
Updates the content type definition that is stored in the database and, optionally, updates all content types that inherit from the content type.
Espace de noms : Microsoft.SharePoint.Client
Assemblys : Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)
Syntaxe
'Déclaration
Public Sub Update ( _
updateChildren As Boolean _
)
'Utilisation
Dim instance As ContentType
Dim updateChildren As Boolean
instance.Update(updateChildren)
public void Update(
bool updateChildren
)
Paramètres
updateChildren
Type : System.Booleantrue to update content types that inherit from the content type; otherwise, false.
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPContentTypeReadOnlyException] | The content type is read only or updateChildren is true and one of the child objects of the content type is read only. Error code: -2146232832. |
[Microsoft.SharePoint.SPContentTypeSealedException] | updateChildren is true and one of the child objects of the content type is a sealed content type. Error code: -2146232832. |
[Microsoft.SharePoint.SPException] | Collection is read only or updateChildren is true and there are no child objects of the content type. Error code: -2146232832. |