Method MakeReadOnlyMakeReadOnly()Signals that further modifications of the object must be prevented. Declaration protected virtual void MakeReadOnly()