Partilhar via


SPPersistedObject.Validate Method

Validates the state of all fields before persisting the object.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)> _
Protected Overridable Sub Validate
'Usage

Me.Validate()
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ProtectedMethod)]
protected virtual void Validate()

Remarks

An InvalidOperationException is thrown if the object has been deleted.

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

Microsoft.SharePoint.Administration Namespace