ThrowIfThisIsAttachment method

void ThrowIfThisIsAttachment()
Throws exception if this is attachment.

Implementation

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