public DataSchemaServer(IVsDataConnection connection) { if (connection == null) { throw new ArgumentNullException("connection"); } _connection = connection; _selector = (connection).GetService(typeof(IVsDataMappedObjectSelector)) as IVsDataMappedObjectSelector; if (_selector == null) { throw new ArgumentException("IVsDataMappedObjectSelector"); } }