private void EnsureAbsoluteUri () { if (!IsAbsoluteUri) throw new InvalidOperationException ("This operation is not supported for a relative URI."); } #else