ThrowIfThisIsAttachment method

void ThrowIfThisIsAttachment()
Throws exception if this is attachment.

Implementation

void ThrowIfThisIsAttachment() {
  if (this.IsAttachment) {
    throw new InvalidOperationException(
        "Strings.OperationDoesNotSupportAttachments");
  }
}