ThrowIfThisIsNotNew method

void ThrowIfThisIsNotNew()
Throws exception if this is not a new service object.

Implementation

void ThrowIfThisIsNotNew() {
  if (!this.IsNew) {
    throw new InvalidOperationException("Strings.AttachmentCannotBeUpdated");
  }
}